User tests: Successful: Unsuccessful:
#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
Status | New | ⇒ | Pending |
Labels |
Added:
?
?
|
Labels |
Added:
?
?
|
Category | ⇒ | Components Language & Strings UI/UX |
Labels |
I have a suggestion for com_contacts: search by Linked User (that would be useful) instead of author:
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 . ')'
);
}
@infograf768 please open an issue with that suiggestion
well, is'nt it simpler to modify here? I mean if @brianteeman agrees
I agree it would be useful for contacts
but as this pr is to remove author for tags and contacts I agree with andre
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/
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...
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/
I can't do a PR if yours is not merged, and if mine was merged before, you would have to redo your PR...
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
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.
I have tested this item successfully on 18b323d
Status | Pending | ⇒ | Ready to Commit |
Labels |
Labels |
Added:
?
|
Milestone |
Added: |
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 |
Labels |
Removed:
?
|
I have tested this item successfully on 18b323d
This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/10189.