Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15414545
D18042.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
703 B
Referenced Files
None
Subscribers
None
D18042.diff
View Options
diff --git a/src/applications/pholio/xaction/PholioImageReplaceTransaction.php b/src/applications/pholio/xaction/PholioImageReplaceTransaction.php
--- a/src/applications/pholio/xaction/PholioImageReplaceTransaction.php
+++ b/src/applications/pholio/xaction/PholioImageReplaceTransaction.php
@@ -62,7 +62,19 @@
}
public function extractFilePHIDs($object, $value) {
- return array($value);
+ $file_phids = array();
+
+ $editor = $this->getEditor();
+ $images = $editor->getNewImages();
+ foreach ($images as $image) {
+ if ($image->getPHID() !== $value) {
+ continue;
+ }
+
+ $file_phids[] = $image->getFilePHID();
+ }
+
+ return $file_phids;
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Mar 21, 1:08 AM (19 h, 54 m ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7714723
Default Alt Text
D18042.diff (703 B)
Attached To
Mode
D18042: Correct file PHID extraction on image update in Pholio
Attached
Detach File
Event Timeline
Log In to Comment