Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15386523
D13899.id33553.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D13899.id33553.diff
View Options
diff --git a/src/applications/ponder/constants/PonderQuestionStatus.php b/src/applications/ponder/constants/PonderQuestionStatus.php
--- a/src/applications/ponder/constants/PonderQuestionStatus.php
+++ b/src/applications/ponder/constants/PonderQuestionStatus.php
@@ -7,9 +7,6 @@
const STATUS_CLOSED_OBSOLETE = 'obsolete';
const STATUS_CLOSED_DUPLICATE = 'duplicate';
- const ANSWER_STATUS_VISIBLE = 'visible';
- const ANSWER_STATUS_HIDDEN = 'hidden';
-
public static function getQuestionStatusMap() {
return array(
self::STATUS_OPEN => pht('Open'),
@@ -89,20 +86,4 @@
);
}
- public static function getAnswerStatusMap() {
- return array(
- self::ANSWER_STATUS_VISIBLE => pht('Visible'),
- self::ANSWER_STATUS_HIDDEN => pht('Hidden'),
- );
- }
-
- public static function getAnswerStatusName($status) {
- $map = array(
- self::ANSWER_STATUS_VISIBLE => pht('Visible'),
- self::ANSWER_STATUS_HIDDEN => pht('Hidden'),
- );
- return idx($map, $status, pht('Unknown'));
- }
-
-
}
diff --git a/src/applications/ponder/controller/PonderQuestionEditController.php b/src/applications/ponder/controller/PonderQuestionEditController.php
--- a/src/applications/ponder/controller/PonderQuestionEditController.php
+++ b/src/applications/ponder/controller/PonderQuestionEditController.php
@@ -136,6 +136,8 @@
->setName('status')
->setValue($v_status)
->setOptions(PonderQuestionStatus::getQuestionStatusMap()));
+ } else {
+ $form->addHiddenInput('status', PonderQuestionStatus::STATUS_OPEN);
}
$form->appendControl(
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Mar 16, 12:46 AM (2 d, 20 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7704756
Default Alt Text
D13899.id33553.diff (1 KB)
Attached To
Mode
D13899: Fix new Question in Ponder
Attached
Detach File
Event Timeline
Log In to Comment