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
F2194713: D25482.1716091508.diff
Sat, May 18, 04:05
Unknown Object (File)
Sun, May 12, 03:09
Unknown Object (File)
Sat, May 11, 00:35
Unknown Object (File)
Sat, May 4, 12:32
Unknown Object (File)
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

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