Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15408968
D13472.id32599.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
903 B
Referenced Files
None
Subscribers
None
D13472.id32599.diff
View Options
diff --git a/src/view/form/control/AphrontFormPolicyControl.php b/src/view/form/control/AphrontFormPolicyControl.php
--- a/src/view/form/control/AphrontFormPolicyControl.php
+++ b/src/view/form/control/AphrontFormPolicyControl.php
@@ -39,6 +39,22 @@
return $this;
}
+ public function getSerializedValue() {
+ return json_encode(array(
+ $this->getValue(),
+ $this->getSpacePHID(),
+ ));
+ }
+
+ public function readSerializedValue($value) {
+ $decoded = phutil_json_decode($value);
+ $policy_value = $decoded[0];
+ $space_phid = $decoded[1];
+ $this->setValue($policy_value);
+ $this->setSpacePHID($space_phid);
+ return $this;
+ }
+
public function readValueFromDictionary(array $dictionary) {
// TODO: This is a little hacky but will only get us into trouble if we
// have multiple view policy controls in multiple paged form views on the
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Mar 20, 2:25 AM (3 w, 3 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7247129
Default Alt Text
D13472.id32599.diff (903 B)
Attached To
Mode
D13472: Spaces + Diffusion - make creating a new repository work again
Attached
Detach File
Event Timeline
Log In to Comment