User tests: Successful: Unsuccessful:
Pull Request for Issue #25255.
Set title column alias in ContactTable
and NewsfeedTable
table.
Use column aliases in Joomla\CMS\MVC\Model\AdminModel::generateTitle()
and Joomla\CMS\MVC\Model\AdminModel::generateNewTitle()
.
Go to contacts or newsfeeds list in backend.
Select a contact/newsfeed.
Click Batch button.
Perform batch copy to the same category.
Contact/newsfeed title incremented, e.g. Sample Contact
becomes Sample Contact (2)
.
Contact/newsfeed title not incremented.
No.
Status | New | ⇒ | Pending |
Category | ⇒ | Administration com_contact Libraries |
Labels |
Added:
?
|
Category | Administration com_contact Libraries | ⇒ | Administration com_contact com_newsfeeds Libraries |
Title |
|
I have not tested this item.
Hmm, I get:
[Tue Jun 18 20:54:06.411713 2019] [php7:notice] [pid 6007] [client 192.168.98.1:60754] PHP Notice: Undefined property: ContactTableContact::$title in /home/richard/lamp/public_html/joomla-cms/libraries/src/MVC/Model/AdminModel.php on line 1534, referer: https://www.joomla.vmnet2.local/administrator/index.php?option=com_contact
[Tue Jun 18 20:54:44.544675 2019] [php7:notice] [pid 6019] [client 192.168.98.1:60758] PHP Notice: Undefined property: NewsfeedsTableNewsfeed::$title in /home/richard/lamp/public_html/joomla-cms/libraries/src/MVC/Model/AdminModel.php on line 1534, referer: https://www.joomla.vmnet2.local/administrator/index.php?option=com_newsfeeds
I have tested this item
Me idiot. PHP notice undefined property was BEFORE the PR was applied
PR works as described.
With articles and other stuff the title is already incremented before this PR, so this PR makes the functionality consistent also for contacts and newsfeeds.
In addition, it makes the PHP Notice: Undefined property: ContactTableContact::$title
and PHP Notice: Undefined property: NewsfeedsTableNewsfeed::$title
not happen anymore when batch copying contacts or newsfeeds.
I have tested this item
Me idiot. PHP notice undefined property was BEFORE the PR was applied
PR works as described.
With articles and other stuff the title is already incremented before this PR, so this PR makes the functionality consistent also for contacts and newsfeeds.
In addition, it removes the PHP Notice: Undefined property: ContactTableContact::$title
and PHP Notice: Undefined property: NewsfeedsTableNewsfeed::$title
from PHP log.
I have tested this item
Status | Pending | ⇒ | Ready to Commit |
RTC
proud of you guys, not so common behaviour to admit a momentary lapse of fault
For me it is normal behavior.
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2019-06-23 15:57:13 |
Closed_By | ⇒ | wilsonge | |
Labels |
Added:
?
|
Thanks!
I have tested this item✅ successfully on 13bc80c
Works as described.
With articles and other stuff the title is already incremented before this PR, so this PR makes the functionality consistent also for contacts and newsfeeds.
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/25259.