? ? Pending

User tests: Successful: Unsuccessful:

avatar SharkyKZ
SharkyKZ
18 Jun 2019

Pull Request for Issue #25255.

Summary of Changes

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().

Testing Instructions

Go to contacts or newsfeeds list in backend.
Select a contact/newsfeed.
Click Batch button.
Perform batch copy to the same category.

Expected result

Contact/newsfeed title incremented, e.g. Sample Contact becomes Sample Contact (2).

Actual result

Contact/newsfeed title not incremented.

Documentation Changes Required

No.

avatar SharkyKZ SharkyKZ - open - 18 Jun 2019
avatar SharkyKZ SharkyKZ - change - 18 Jun 2019
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 18 Jun 2019
Category Administration com_contact Libraries
avatar SharkyKZ SharkyKZ - change - 18 Jun 2019
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - change - 18 Jun 2019
Category Administration com_contact Libraries Administration com_contact com_newsfeeds Libraries
avatar SharkyKZ SharkyKZ - change - 18 Jun 2019
Title
Contact title not incremented during batch copy
Contact and Newsfeed title not incremented during batch copy
avatar SharkyKZ SharkyKZ - edited - 18 Jun 2019
avatar SharkyKZ SharkyKZ - change - 18 Jun 2019
The description was changed
avatar SharkyKZ SharkyKZ - edited - 18 Jun 2019
avatar richard67
richard67 - comment - 18 Jun 2019

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.

avatar richard67 richard67 - test_item - 18 Jun 2019 - Tested successfully
avatar richard67
richard67 - comment - 18 Jun 2019

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


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/25259.

avatar richard67 richard67 - test_item - 18 Jun 2019 - Not tested
avatar richard67
richard67 - comment - 18 Jun 2019

I have tested this item successfully on 13bc80c

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.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/25259.

avatar richard67
richard67 - comment - 18 Jun 2019

I have tested this item successfully on 13bc80c

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.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/25259.

avatar richard67 richard67 - test_item - 18 Jun 2019 - Tested successfully
avatar richard67
richard67 - comment - 18 Jun 2019

@Quy Just when you had finished typing I had noticed that, too 😄

avatar Quy
Quy - comment - 18 Jun 2019

I have tested this item successfully on 13bc80c


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/25259.

avatar Quy Quy - test_item - 18 Jun 2019 - Tested successfully
avatar Quy Quy - change - 18 Jun 2019
Status Pending Ready to Commit
avatar Quy
Quy - comment - 18 Jun 2019

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/25259.

avatar alikon
alikon - comment - 18 Jun 2019

proud of you guys, not so common behaviour to admit a momentary lapse of fault

avatar richard67
richard67 - comment - 18 Jun 2019

For me it is normal behavior.

avatar SharkyKZ SharkyKZ - change - 18 Jun 2019
The description was changed
avatar SharkyKZ SharkyKZ - edited - 18 Jun 2019
avatar wilsonge wilsonge - change - 23 Jun 2019
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: ?
avatar wilsonge wilsonge - close - 23 Jun 2019
avatar wilsonge wilsonge - merge - 23 Jun 2019
avatar wilsonge
wilsonge - comment - 23 Jun 2019

Thanks!

Add a Comment

Login with GitHub to post a comment