Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14065742
D7536.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
811 B
Referenced Files
None
Subscribers
None
D7536.diff
View Options
Index: src/applications/pholio/editor/PholioMockEditor.php
===================================================================
--- src/applications/pholio/editor/PholioMockEditor.php
+++ src/applications/pholio/editor/PholioMockEditor.php
@@ -287,9 +287,12 @@
case PholioTransactionType::TYPE_DESCRIPTION:
return $v;
case PholioTransactionType::TYPE_IMAGE_REPLACE:
- if ($u->getNewValue() == $v->getOldValue()) {
+ $u_img = $u->getNewValue();
+ $v_img = $v->getNewValue();
+ if ($u_img->getReplacesImagePHID() == $v_img->getReplacesImagePHID()) {
return $v;
}
+ break;
case PholioTransactionType::TYPE_IMAGE_FILE:
return $this->mergePHIDOrEdgeTransactions($u, $v);
case PholioTransactionType::TYPE_IMAGE_NAME:
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 20, 6:08 AM (7 h, 11 m ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6739731
Default Alt Text
D7536.diff (811 B)
Attached To
Mode
D7536: Pholio - fix a bug replacing multiple images
Attached
Detach File
Event Timeline
Log In to Comment