? ? Success

User tests: Successful: Unsuccessful:

avatar brianteeman
brianteeman
2 May 2016

#10180 and #10176 introduced the correct tooltip for searching in contacts and tags.

This revealed that you can search for a tag or contact by author name which isnt really appropriate as they have a creator and not an author - plus we never display the name of the creator anywhere so we dont need this and it can be removed.

This PR removes the ability to search contacts and tags by author name using the prefix Author

avatar brianteeman brianteeman - open - 2 May 2016
avatar brianteeman brianteeman - change - 2 May 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 2 May 2016
Labels Added: ? ?
avatar joomla-cms-bot joomla-cms-bot - change - 2 May 2016
Labels Added: ? ?
avatar brianteeman brianteeman - change - 2 May 2016
Category Components Language & Strings UI/UX
avatar brianteeman brianteeman - change - 2 May 2016
Labels
avatar andrepereiradasilva andrepereiradasilva - test_item - 2 May 2016 - Tested successfully
avatar andrepereiradasilva
andrepereiradasilva - comment - 2 May 2016

I have tested this item :white_check_mark: successfully on 18b323d


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

avatar infograf768
infograf768 - comment - 3 May 2016

I have a suggestion for com_contacts: search by Linked User (that would be useful) instead of author:

It would give
screen shot 2016-05-03 at 11 46 37

With this code change (+ the string evidently)

diff --git a/administrator/components/com_contact/models/contacts.php b/administrator/components/com_contact/models/contacts.php
index d1a2e8e..2111508 100644
--- a/administrator/components/com_contact/models/contacts.php
+++ b/administrator/components/com_contact/models/contacts.php
@@ -301,9 +301,9 @@
                $query->where('a.id = ' . (int) substr($search, 3));
            }
-           elseif (stripos($search, 'author:') === 0)
+           elseif (stripos($search, 'linked:') === 0)
            {
                $search = $db->quote('%' . $db->escape(substr($search, 7), true) . '%');
                $query->where(
-                   '(' . $db->quoteName('uc.name') . ' LIKE ' . $search . ' OR ' . $db->quoteName('uc.username') . ' LIKE ' . $search . ')'
+                   '(' . $db->quoteName('ul.name') . ' LIKE ' . $search . ')'
                );
            }
avatar andrepereiradasilva
andrepereiradasilva - comment - 3 May 2016

@infograf768 please open an issue with that suiggestion :wink:

avatar infograf768
infograf768 - comment - 3 May 2016

well, is'nt it simpler to modify here? I mean if @brianteeman agrees

avatar brianteeman
brianteeman - comment - 3 May 2016

I agree it would be useful for contacts
but as this pr is to remove author for tags and contacts I agree with andre

  • please make a new pr for that

On 3 May 2016 at 10:53, infograf768 notifications@github.com wrote:

well, is'nt it simpler to modify here? I mean if @brianteeman
https://github.com/brianteeman agrees


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#10189 (comment)

Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
http://brian.teeman.net/

avatar infograf768
infograf768 - comment - 3 May 2016

this would mean double job for TTs using crowdin:
first translate
+COM_CONTACT_FILTER_SEARCH_DESC="Search in contact name and alias. Prefix with ID: to search for a contact ID."

and then
change it again.

Not nice to them...

avatar brianteeman
brianteeman - comment - 3 May 2016

No it wont really as it is unlikely they will even see the first edit if
you do the PR now

On 3 May 2016 at 10:58, infograf768 notifications@github.com wrote:

this would mean double job for TTs using crowdin:
first translate
+COM_CONTACT_FILTER_SEARCH_DESC="Search in contact name and alias. Prefix
with ID: to search for a contact ID."

and then
change it again.

Not nice to them...


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#10189 (comment)

Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
http://brian.teeman.net/

avatar infograf768
infograf768 - comment - 3 May 2016

I can't do a PR if yours is not merged, and if mine was merged before, you would have to redo your PR...

avatar brianteeman
brianteeman - comment - 3 May 2016

If you test this one then it will be RTC and based on current merge time it will be merged within a few hours maximum

avatar infograf768
infograf768 - comment - 3 May 2016

and then we come back to my first comment: some TT will have to change their translation if mine is not merged just after yours, which I can't prepare until yours is merged
Just forget it.

avatar grhcj grhcj - test_item - 3 May 2016 - Tested successfully
avatar grhcj
grhcj - comment - 3 May 2016

I have tested this item :white_check_mark: successfully on 18b323d


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

avatar brianteeman brianteeman - change - 3 May 2016
Status Pending Ready to Commit
Labels
avatar brianteeman
brianteeman - comment - 3 May 2016

RTC


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

avatar joomla-cms-bot joomla-cms-bot - change - 3 May 2016
Labels Added: ?
avatar brianteeman brianteeman - change - 3 May 2016
Milestone Added:
avatar rdeutz rdeutz - change - 3 May 2016
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2016-05-03 14:40:12
Closed_By rdeutz
avatar rdeutz rdeutz - reference | c476843 - 3 May 16
avatar rdeutz rdeutz - merge - 3 May 2016
avatar rdeutz rdeutz - close - 3 May 2016
avatar brianteeman brianteeman - change - 11 May 2016
Labels Removed: ?

Add a Comment

Login with GitHub to post a comment