-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[com_categories] - convert to prepared statement #27205
Conversation
administrator/components/com_categories/Field/CategoryeditField.php
Outdated
Show resolved
Hide resolved
administrator/components/com_categories/Field/Modal/CategoryField.php
Outdated
Show resolved
Hide resolved
…d.php Co-Authored-By: Quy <[email protected]>
…eld.php Co-Authored-By: Quy <[email protected]>
administrator/components/com_categories/Model/CategoriesModel.php
Outdated
Show resolved
Hide resolved
administrator/components/com_categories/Model/CategoriesModel.php
Outdated
Show resolved
Hide resolved
administrator/components/com_categories/Model/CategoriesModel.php
Outdated
Show resolved
Hide resolved
administrator/components/com_categories/Model/CategoriesModel.php
Outdated
Show resolved
Hide resolved
administrator/components/com_categories/Model/CategoriesModel.php
Outdated
Show resolved
Hide resolved
administrator/components/com_categories/Model/CategoryModel.php
Outdated
Show resolved
Hide resolved
administrator/components/com_categories/Model/CategoryModel.php
Outdated
Show resolved
Hide resolved
Co-Authored-By: Quy <[email protected]>
Co-Authored-By: Quy <[email protected]>
Co-Authored-By: Quy <[email protected]>
Co-Authored-By: Quy <[email protected]>
Edit a category but unable to save. |
administrator/components/com_categories/Model/CategoryModel.php
Outdated
Show resolved
Hide resolved
Co-Authored-By: Quy <[email protected]>
that i could be burned on 🔥 |
administrator/components/com_categories/Model/CategoryModel.php
Outdated
Show resolved
Hide resolved
I have tested this item ✅ successfully on 8ad3883 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/27205. |
@@ -332,10 +345,25 @@ protected function getOptions() | |||
} | |||
} | |||
|
|||
if (($this->element['parent'] == true || $jinput->get('option') == 'com_categories') | |||
&& (isset($row) && !isset($options[0])) | |||
if ($oldCat != 0 && ($this->element['parent'] == true || $jinput->get('option') == 'com_categories') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why the changes here and to the query below?
I have tested this item ✅ successfully on 8ad3883 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/27205. |
RTC. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/27205. |
Thanks |
Co-authored-by: Quy <[email protected]>
Summary of Changes
use prepared statement for SQL
Testing Instructions
test com_categories
Expected result
works as before
Actual result
N/A