User tests: Successful: Unsuccessful:
This patch removes a useless and wrong attribute from a FormField
The removed line is:
statuses="*,0,1,2,-2"
It seems that this should be something like a filter but if that is the case it has to be
filter="*,0,1,2,-2"
but because the filter filters on all states it filters on nothing so it is obsolet.
Full b/c, no problems are expected
none
Unfortunately this Patch can’t be testet directly because we aren’t filter on something, so we have two options to make sure I am right.
1) Open the file:
administrator/components/com_banner/models/forms/filter_banners.xml
2) Change the line
statuses="*,0,1,2,-2"
to
statuses="*,0,1"
3) Save
4) Log into to backend and go to Banners/Banners and check the Status select
5) You should see all Status:
6) Now change
statuses="*,0,1"
to
filter="*,0,1"
7) You should see the Status:
If you open the file:
libraries/cms/form/field/status.php
you can see that this class is extending „JFormFieldPredefinedList“ in
libraries/joomla/form/fields/predefinedlist.php
in line 73 you can see that the used attribute is „filter“, nothing to find that is called „statuses“
Labels |
Added:
?
|
Hathor has overwrites for the banners view and is not using the filter_banners.xml, in this case it is operating as the old view before we had the search tools. So this is another problem and has noting to do with the issue here. I am only using the banners view to show the effect.
ok then makes sense
On 6 February 2015 at 22:02, Robert Deutz notifications@github.com wrote:
Hathor has overwrites for the banners view and is not using the
filter_banners.xml, in this case it is operating as the old view before we
had the search tools. So this is another problem and has noting to do with
the issue here. I am only using the banners view to show the effect.—
Reply to this email directly or view it on GitHub
#6003 (comment).
Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
http://brian.teeman.net/
@test unknown
After applying the patch there is no change with Isis and the status filter works as expected
Switching to Hathor and while the names of the filters are displayed the status filter does not work at all
Reverted the patch and realised that the none of the filters work in Hathor anyway in the banners component
Category | ⇒ | Administration |
Can we put that Hathor thing in as a separate issue please Brian?
Sure thing will do later
@test success. After applying the patch I still see all the statuses. The statuses attribute is obsolete. @rdeutz The same goes for the administrator\components\com_categories\models\forms\filter_categories.xml, administrator\components\com_content\models\forms\filter_featured.xml and administrator\components\com_menus\models\forms\filter_items.xml. Can you include them in this PR?
@wilsonge the hathor issue IS related to this issue and should be handled
here not in another issue. Hathor works perfectly without this PR but does
NOT work with this PR
My non-developer conclusion then is that this "obsolete" code IS used in
joomla as the hathor template uses it
On 8 February 2015 at 08:22, Robert Deutz notifications@github.com wrote:
@roland-d https://github.com/roland-d removed the line in the other 3
files, missed this ones because I searched for name="state" good catch
Roland.—
Reply to this email directly or view it on GitHub
#6003 (comment).
Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
http://brian.teeman.net/
No this issue has nothing to do with Hathor. Hathor implements the search filters different. The removed attribute isn't used at all.
But it works in Hathor before applying this patch and does not work after
applying the patch
On 8 February 2015 at 13:21, Robert Deutz notifications@github.com wrote:
No this issue has nothing to do with Hathor. Hathor implements the search
filters different. The removed attribute isn't used at all.—
Reply to this email directly or view it on GitHub
#6003 (comment).
Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
http://brian.teeman.net/
It does work after the patch, you clicked on "submit" ?
Yes and to prove I am not making things up here is a video of a clean 3,4
beta 2 install with test data. Showing filters working in hathor before the
patch and not working in hathor after the patch
https://www.dropbox.com/s/n8w5qgbntx2rdxo/banners.mp4?dl=0
On 8 February 2015 at 13:34, Robert Deutz notifications@github.com wrote:
It does work after the patch, you clicked on "submit" ?
—
Reply to this email directly or view it on GitHub
#6003 (comment).
Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
http://brian.teeman.net/
Wow - really weird - with the exact same site I just logged out and back in again and it worked again. No idea
Maybe something saved in the session?
Could be - I think we can ignore my report now - sorry
On 8 February 2015 at 13:56, Robert Deutz notifications@github.com wrote:
Maybe something saved in the session?
—
Reply to this email directly or view it on GitHub
#6003 (comment).
Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
http://brian.teeman.net/
Status | Pending | ⇒ | Ready to Commit |
I am setting this to RTC counting Brian's test as success after removing the Hathor confusion
Labels |
Added:
?
|
Status | Ready to Commit | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2015-02-09 23:54:00 |
Merged. Thanks Robert!
Robert can you check this with Hathor as well
I can confirm your findings following Options 1 but when switching to hathor after step 6 I still see all 5 status
This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/6003.