Page MenuHomePhorge

Fix exception in Transaction Log after renaming Pholio Mock image: Call to undefined method PholioImageSequenceTransaction::renderHandleLink()
ClosedPublic

Authored by aklapper on Nov 29 2023, 14:45.

Details

Summary

Replace call to undefined renderHandleLink() with renderHandle().

Additionally, pass head_key($new) instead of key($new). This might not be needed strictly speaking for this very issue but should not harm either as several images in a mock can be renamed at once.

EXCEPTION: (Error) Call to undefined method PholioImageSequenceTransaction::renderHandleLink() at [<phorge>/src/applications/pholio/xaction/PholioImageSequenceTransaction.php:32]

Closes T15680

Test Plan
  • Rename the title of an image in a Pholio mock.
  • Go to /feed/transactions/query/all/ which now renders instead of showing an error, and shows two entries:
  • user renamed an image (newname.jpg) from oldname.jpg to newname.jpg. and user updated an image's (newname.jpg) sequence.

(However, separate T15679 will still show up in the error log after this change.)

Diff Detail

Repository
rP Phorge
Branch
T15680PholioRename (branched from master)
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 959
Build 959: arc lint + arc unit

Event Timeline

Was this the result of a recent change?

src/applications/pholio/xaction/PholioImageSequenceTransaction.php
32

Do you mean this to be head(key($new))?

In D25482#13939, @speck wrote:

Was this the result of a recent change?

I do not know; however I do not think so. I can imagine it's just Pholio poorly handling changes to the overall mock vs its image(s) in some places (cf D25441).

Do you mean this to be head(key($new))?

I do not.

This revision is now accepted and ready to land.Nov 30 2023, 12:30