Reverting previous work. Asset->new must return an Asset, even if
no className is passed and the invocant's class is Asset. This is due to the root. In the db, the root Asset has the className WebGUI::Asset, and the getRoot method matches this. Changed the failing test in Asset.t to look for a WebGUI::Asset to be returned. Added two tests to Asset.t to validate the object returned by Asset->getRoot method. Reverted previous work and updated the POD for Asset->new.
This commit is contained in:
parent
c956ba3969
commit
000b2fcce3
3 changed files with 11 additions and 10 deletions
|
|
@ -10,9 +10,6 @@
|
|||
- fix: Redirects get displayed inside page layouts as '0'
|
||||
- fix: Mysterious "0" Appearing When Admin Is Off
|
||||
- fix: Deletion of Products
|
||||
- Fix Asset.pm so that if no className is passed primeval Assets are not
|
||||
returned.
|
||||
|
||||
|
||||
7.0.4
|
||||
- Added a forum.lastPost.user.hasRead variable to the Message Board template.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue