? Pending

User tests: Successful: Unsuccessful:

avatar hardik-codes
hardik-codes
19 Apr 2019

This PR adds filtering column which was missing in com_banners(clients) and makes it consistent with other components

After Patch

com_banners

Documentation Changes Required

None

avatar hardik-codes hardik-codes - open - 19 Apr 2019
avatar hardik-codes hardik-codes - change - 19 Apr 2019
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 19 Apr 2019
Category Administration com_banners
avatar hardik-codes hardik-codes - change - 19 Apr 2019
Labels Added: ?
avatar hardik-codes hardik-codes - change - 19 Apr 2019
The description was changed
avatar hardik-codes hardik-codes - edited - 19 Apr 2019
avatar brianteeman
brianteeman - comment - 19 Apr 2019

Sorry but this is completely wrong.

I am assuming from the code that you have added "ordering" not "filtering"

First of all this patch gives two php notices

 
Notice: Undefined variable: saveOrder in C:\htdocs\joomla-cms\administrator\components\com_banners\tmpl\clients\default.php on line 116
 
Notice: Undefined variable: saveOrder in C:\htdocs\joomla-cms\administrator\components\com_banners\tmpl\clients\default.php on line 124

It probably does that because there is no column in the database to store the ordering.

Even if you fix both of those then the main question is "why"

There is no reason to add the ability to set an order for clients. What would it allow you to do with banners that you cannot do now.

avatar brianteeman
brianteeman - comment - 19 Apr 2019

I have tested this item ? unsuccessfully on fe68691


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

avatar brianteeman brianteeman - test_item - 19 Apr 2019 - Tested unsuccessfully
avatar hardik-codes
hardik-codes - comment - 20 Apr 2019

There is no reason to add the ability to set an order for clients. What would it allow you to do with banners that you cannot do now.

@brianteeman I did this to make it consistent with other components

avatar hardik-codes hardik-codes - change - 20 Apr 2019
Title
[4.0] Add filtering column in com_banners
[4.0] Add ordering column in com_banners
avatar hardik-codes hardik-codes - edited - 20 Apr 2019
avatar brianteeman
brianteeman - comment - 20 Apr 2019

This still does nothing at all because there is no column in the database for ordering.

I am all for consistency but in this case it is wrong. There is no point in ordering the clients as it doesn't have any function. Only add code/features if they do something. We aslo dont have the ability to order users for the same reason - it serves no purpose

avatar richard67
richard67 - comment - 20 Apr 2019

I have tested this item ? unsuccessfully on eb993bf

This PR is wrong for reasons stated by @brianteeman above:

  • The banner clients table in database does not have a column for ordering, in opposite to the banners, where it makes sense.
  • To add ordering for banner clients (including column in the banner_clients database table) does not provide any useful functionality and so does not make sense.
    This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/24646.
avatar richard67 richard67 - test_item - 20 Apr 2019 - Tested unsuccessfully
avatar hardik-codes
hardik-codes - comment - 20 Apr 2019

Closing for reasons stated above
Thanks @brianteeman @richard67 for the info

avatar hardik-codes hardik-codes - change - 20 Apr 2019
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2019-04-20 12:33:33
Closed_By hardik-codes
avatar hardik-codes hardik-codes - close - 20 Apr 2019
avatar hardik-codes
hardik-codes - comment - 4 May 2019

@brianteeman in the following link administrator/index.php?option=com_menus&view=items&menutype= also there is no ordering column.
Is an ordering column needed here?

avatar brianteeman
brianteeman - comment - 4 May 2019

Will it to anything? Is there an ordering column?

avatar hardik-codes
hardik-codes - comment - 4 May 2019

As of now there is no ordering column

avatar richard67
richard67 - comment - 4 May 2019

I think Brian means if there is such column in the database table for this view.

avatar hardik-codes
hardik-codes - comment - 4 May 2019

Ok
How do I check this @richard67 ?

avatar richard67
richard67 - comment - 4 May 2019

@hardik-codes With phpmyadmin or pgmyadmin, dependent on your type of database. Table is #__menu, replace #__ by your DB prefix.

But there is no need to check that. In case of menu items, ordering is a bit different.

The ordering of menu items makes only sense within one menu type. That's why the "all menu items" view does not show an ordering column, but the "menu items for a particular menu type" view shows such a column.

I think I remember there was a PR in past which made this change for the "all menu items" view.

Add a Comment

Login with GitHub to post a comment