-
Notifications
You must be signed in to change notification settings - Fork 831
Form_validation: remove empty rules in products & tasks models same other models #1195
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
Form_validation: remove empty rules in products & tasks models same other models #1195
Conversation
Now Custom Fields ip_invoice_custom is present in settings page + Remove hard fix in view template-tags-invoices + Indents of settings view partial_settings general
Inspired by `module/clients/view/partial_client_table.php`
Improve InvoicePlane#1185 Scope: + Clients + DashBoard + Invoices + Quotes + Payments + Products + Tasks Note: .amount.last apply padding in last element like Quotes list
`$(document).on('click', '.ajax-loader', function () {` Is duplicated inside same function.
Like other models
CI (3.3.0) say after save product (Message in dev mode)
Compare CI's to see why |
@sudwebdesign Thank you for the PR. I've done 2 things:
|
I need to keep |
Just in case: this change no affect (maybe accelerate) the product/task save with CI3.1.13 (It's ok for IP v1.6.3, i checked)
IMO On Original CI 3 when if rule is set to
Thanks for your big work and this report of other forks.
Same thing (KISS principle) 💯 Note:Theses *With CodeIgniter-3.1.13 release do not have this but CI by @pocketarc these errors are being reported. |
Like other models Fix on save: Form_validation: set_rules() called with an empty $rules parameter See: #1195
Form_validation: set_rules() called with an empty $rules parameter See: #1195
Form_validation: set_rules() called with an empty $rules parameter See: #1195
Form_validation: set_rules() called with an empty $rules parameter See: #1195
* Improve versions in composer & package + up yarn & composer lock * Improve gh templates & workflows & infos (md) Improve & Merge Develop v163rc1 (#1266) Without TRANSLATION.md * Setup: Upgrade default & users languages to lowercase like #1232 * Fix: Save products & tasks. No empty rules in Form_validation Form_validation: set_rules() called with an empty $rules parameter See: #1195 * Improve Uploader: Del old system. No show file \w upload_file() Not used in v1.6.3RC0 * PHP compat: No E_STRICT (error_reporting) & Adjust Rector rule In accordance of doc, is unused & PHP 8.4 deprecate. See: https://www.php.net/manual/errorfunc.constants.php#constant.e-strict --- Scope: production or testing environment How to set? See: https://github.com/orgs/InvoicePlane/discussions/1168 * Rector: More efficient Sets: deadCode, codeQuality & codingStyle Applied rules: * RemoveUselessParamTagRector * StrictArraySearchRector * FuncGetArgsToVariadicParamRector * Refacto \w Rector: Prepared set typeDeclarations:true Applied rules: * ReturnUnionTypeRector * ReturnNullableTypeRector * RemoveUselessParamTagRector * RemoveUselessReturnTagRector * StrictStringParamConcatRector * StrictArrayParamDimFetchRector * SimplifyBoolIdenticalTrueRector * ParamTypeByMethodCallTypeRector * ReturnTypeFromStrictNewArrayRector * SimplifyEmptyCheckOnEmptyArrayRector * ReturnTypeFromReturnDirectArrayRector * NumericReturnTypeFromStrictReturnsRector * TypedPropertyFromStrictConstructorRector * BoolReturnTypeFromBooleanConstReturnsRector * BoolReturnTypeFromBooleanStrictReturnsRector * AddFunctionVoidReturnTypeWhereNoReturnRector * StringReturnTypeFromStrictStringReturnsRector * Add composer scripts: phpcs, rector & check `composer run check` to verify & correct the code (with all) * Refacto: My_Form_validation::run() (Ready for Next-1.7) Ok with CodeIgniter 3.1.13 (& 3.3 by pocketarc for PHP 8.2+) See: e95b95f * ipconfig: Add CI_ENV=production to hide minor PHP errors by default Improve gitignore & remove todo (oups) * [wip] JSON.parse to json_parse to show error in front end * [script.js] json_parse for all & console.trace(data) to debug Need `yarn build` if `ENABLE_DEBUG=false` in ipconfig * [script.js] Finish json_parse: Add console.error & div.alert * README header: Restore badges & show favicon at float right --------- Co-authored-by: Niels Drost <[email protected]>
Description
Same as numerous Models (Good practice?)
See modules/clients/models/Mdl_clients.php line 40
in
validation_rules
:client_title
,client_surname
, ...have no
rule
Same in modules/invoices/models/Mdl_items.php line 66 and others...
Related Issue
Maybe #1180
Motivation and Context
Completion to simplify transition for php.8.4 & maintained CI
Compatibility with CodeIgniter 3.1.13 & 3.3.0 by @pocketarc
In relation with PR #1161 + Issue #1180
Exception find when use CodeIgniter 3.3.0 by @pocketarc
and when edit + save product go to blank page (prod mode)
See this message for backtrace.
Pull Request Checklist
Issue Type (Please check one or more)