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.
Tags
None
Referenced Files
F2176629: D25482.id1549.diff
Fri, May 3, 13:08
Unknown Object (File)
Wed, May 1, 02:18
Unknown Object (File)
Wed, Apr 24, 22:51
Unknown Object (File)
Wed, Apr 24, 11:06
Unknown Object (File)
Mon, Apr 22, 07:52
Unknown Object (File)
Wed, Apr 17, 18:16
Unknown Object (File)
Wed, Apr 17, 17:56
Unknown Object (File)
Wed, Apr 17, 06:36

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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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