custom_fields_event_handler.php

Checkout Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates

Creating "In-Portal" module for versions before 5.0.0.

    • -307
    • +0
    ./custom_fields_event_handler.php
  1. … 5855 more files in changeset.

Fixes #0000103: Applying License to In-Portal and Modules

INS-1

  1. … 255 more files in changeset.

1. Fixes #0000083: Ability to enter sql queries and phrases as custom field options.

2. htmlspecialchars function (in javascript) wasn't applied on options added in MInput control (inp_edit_minput block).

3. Commented-out code removed from kModRewriteHelper class, because was proven, that code if uncommented doesn't provide any upgrade to current url parsing functionality. In other words - all works without it in all cases.

INP-71

  1. … 4 more files in changeset.

1. #27493 - Admin: Add Item on Advanced View

2. OnCancel event was called on "categories/categories_edit" template instead of "OnCancelEdit" resulting no temporary table was deleted.

3. Method kApplication::ConfigValue fixed. Now if variable value is present, but it has NULL as value, then such variable is not threated as missing and duplicate queries are performed.

TODO: replace all NULL values in ConfigurationValues table with default values based on variable type (0 for checkbox, empty string for text and so on)

4. Now kDBEventHandler::StoreSelectedIDs could also get IDs from new "ids" $event parameter, rather, then from request. Useful, when IDs are changed on kDBEventHandler::CheckPermission method (before actual event call).

5. Method CategoryHelper::getStructureTreeAsOptions added. Method provides ability to get all category structure as options for any dbitem field (like ParentId for categories and CategoryId for category items).

6. Method CustomFieldsEventHandler::_getHiddenFiels fixed. Now it doesn't given warning when editing category item, with no custom fields to show on general tab.

7. Fixed method kCatDBItem::MoveToCat. Now, when category item is in temp mode, then category manipulations are also made in temp tables.

8. Permission checking logic for categories and category items in temp table is changed. Now everything in temp tables for them is allowed. Permissions are checked only when Save button is pressed during main item (not subitem) editing. When user selected 5 items, but he can edit only 2 of them, then other 3 are automatically excluded from item edit form. When all of selected items are excluded, then user gets "no permission" screen. Same with "move up/down", "approve/decline" toolbar buttons.

9. Method CategoriesEventHandler::printChildren && CategoriesEventHandler::getChildren moved to CategoryHelper and now are used by new CategoryHelper::getStructureTreeAsOptions method. Some documentation added for other CategoryHelper methods.

10. Permission debugging information was not available in some of permission checking methods. That's why method kPermissionHelper::finalizePermissionCheck added. Method should be used in any place, when $event status should change to erPERM_FAIL.

11. Column filters on Category Edit -> Custom tab's grid were not working, because of incorrect grid name used (Default instead of SeparateTab).

12. Fixed title preset name in "products/products_access" template (was "pr", but should be "access").

13. Fixed incorrect pagination prefix in some templates.

14. Formatter added for OnSale field in Products table.

15. No permission template fixed, now it doesn't break catalog.

16. sections_list template fixed to use new blocks.

  1. … 29 more files in changeset.

1. Final ajustments to categories_edit template to work with site config field hiding engine.

2. Custom field options list made smaller.

3. no_special parameter added to inp_label block.

4. Some debug code removed from kApplication class.

5. Added tags FieldVisible and FieldsVisible to show/hide fields based on data from site configs.

6. Global template compiler (from system tools section) now works only with enabled themes.

7. Fixed some warning on import/export screen.

8. #27460 - Admin: Hide Fields & Sections marked in Site Configs

  1. … 16 more files in changeset.

1. Permit string keys in value lists during custom field edit

2. Don't process sql queries in value list field during custom field edit

3. SQLs in value list fields are now imploded using given separator and not by "," as before

  1. … 2 more files in changeset.

#24714 - custom fields upgrade in RC

  1. … 2 more files in changeset.
  • More
  • 8929
  • changed 4046 files

This commit was manufactured by cvs2svn to create branch 'RC'.

    • -0
    • +149
    ./custom_fields_event_handler.php
  1. … 4045 more files in changeset.