[opw-web] Add opinion: No contribution, will not accept



commit 47f76d68051ac55da1cf691c48ada454473912f9
Author: Owen W. Taylor <otaylor fishsoup net>
Date:   Wed Mar 19 00:20:35 2014 -0400

    Add opinion: No contribution, will not accept
    
    This allows organizations to distinguish applications that will
    definitively not be accepted from applications where a contribution
    might still be in progress.

 lang/en-gb.php |    1 +
 schema.sql     |    1 +
 utils.php      |    2 +-
 3 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/lang/en-gb.php b/lang/en-gb.php
index 619ecb4..3bd6db1 100644
--- a/lang/en-gb.php
+++ b/lang/en-gb.php
@@ -149,6 +149,7 @@ $lang_data = array(
     'manage'                => 'Rank',
     'status'                => 'Status',
     'opinion_n'             => 'No contribution',
+    'opinion_y'             => 'No contribution, will not accept',
     'opinion_c'             => 'Contribution, under review',
     'opinion_x'             => 'Contribution, will not accept',
     'opinion_w'             => 'Want to accept, need funding',
diff --git a/schema.sql b/schema.sql
index 3dac88b..f25895e 100644
--- a/schema.sql
+++ b/schema.sql
@@ -36,6 +36,7 @@ CREATE TABLE `opw_projects` (
   `is_complete` tinyint(1) NOT NULL DEFAULT 0,
   `ranking` float NOT NULL DEFAULT -1,
   /* 'n' - No contribution
+   * 'y' - No contribution, will not accept
    * 'c' - Contribution, under review
    * 'x' - Contribution, will not accept
    * 'w' - Want to accept, need funding
diff --git a/utils.php b/utils.php
index 35bf4f6..c6f6b12 100644
--- a/utils.php
+++ b/utils.php
@@ -35,7 +35,7 @@ function build_organization_select($program_id, $current, $include_other, $name=
     return $organization_select;
 }
 
-$VALID_OPINIONS = array('n', 'c', 'x', 'w', 'f');
+$VALID_OPINIONS = array('n', 'y', 'c', 'x', 'w', 'f');
 
 function build_opinion_select($current, $name, $disabled=false) {
     global $VALID_OPINIONS, $lang;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]