-
-
Notifications
You must be signed in to change notification settings - Fork 317
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix sub-albums sorting not being respected per album #2630
Conversation
* | ||
* @codeCoverageIgnore | ||
*/ | ||
public function exceptionTraceToText(\Exception $e): string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not used in the PR, but quite useful when debugging:
dd($var, Helpers::exceptionTraceToText(new Exception))
Will dump the value of $var in a 500 and followed by the trace of where the dump happened.
The front-end is already taking care of making it a nice visual :)
*/ | ||
public function getEffectiveAlbumSorting(): AlbumSortingCriterion | ||
{ | ||
return $this->getAlbumSortingAttribute() ?? AlbumSortingCriterion::createDefault(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
getAlbumSortingAttribute()
is defined on line 448 of the same file.
Co-authored-by: Martin Stone <1611702+d7415@users.noreply.github.com>
* fix sub-albums sorting not being respected per album * Update app/Models/Album.php Co-authored-by: Martin Stone <1611702+d7415@users.noreply.github.com> --------- Co-authored-by: Martin Stone <1611702+d7415@users.noreply.github.com>
This thing has been plaguing us for a while.
Finally found the proper fix.