Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13961373
D13754.id.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
D13754.id.diff
View Options
diff --git a/src/applications/conpherence/controller/ConpherenceNewRoomController.php b/src/applications/conpherence/controller/ConpherenceNewRoomController.php
--- a/src/applications/conpherence/controller/ConpherenceNewRoomController.php
+++ b/src/applications/conpherence/controller/ConpherenceNewRoomController.php
@@ -7,6 +7,7 @@
$title = pht('New Room');
$e_title = true;
+ $v_message = null;
$validation_exception = null;
$conpherence = ConpherenceThread::initializeNewRoom($user);
@@ -35,12 +36,12 @@
->setTransactionType(PhabricatorTransactions::TYPE_JOIN_POLICY)
->setNewValue($request->getStr('joinPolicy'));
- $message = $request->getStr('message');
- if ($message) {
+ $v_message = $request->getStr('message');
+ if (strlen($v_message)) {
$message_xactions = $editor->generateTransactionsFromText(
$user,
$conpherence,
- $message);
+ $v_message);
$xactions = array_merge($xactions, $message_xactions);
}
@@ -121,7 +122,8 @@
id(new PhabricatorRemarkupControl())
->setUser($user)
->setName('message')
- ->setLabel(pht('First Message')));
+ ->setLabel(pht('First Message'))
+ ->setValue($v_message));
$dialog->appendChild($form);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Oct 16 2024, 4:44 AM (5 w, 1 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6714684
Default Alt Text
D13754.id.diff (1 KB)
Attached To
Mode
D13754: Don't reset message if missing Room Title in New Conpherence Room
Attached
Detach File
Event Timeline
Log In to Comment