Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F80914
D7536.diff
All Users
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
808 B
Referenced Files
None
Subscribers
None
D7536.diff
View Options
diff --git a/src/applications/pholio/editor/PholioMockEditor.php b/src/applications/pholio/editor/PholioMockEditor.php
--- a/src/applications/pholio/editor/PholioMockEditor.php
+++ b/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/x-diff
Storage Engine
amazon-s3
Storage Format
Raw Data
Storage Handle
phabricator/fu/44/3hel25w7gcvzpux7
Default Alt Text
D7536.diff (808 B)
Attached To
Mode
D7536: Pholio - fix a bug replacing multiple images
Attached
Detach File
Event Timeline
Log In to Comment