Axis of history change by product https://baza.cn.ua/admin/shop/products/64906/history/?userid=&filter2_key=valueold&filter2_type=search&filter2_value=&filter3_key=valuenew&filter3_type=search&filter3_value=&fieldkey=articul&filtercdatefrom=&filtercdateto=
According to the product, we changed the fields of the article
Article on the back "785641001" added "0" axis so "0785641001"
In history, the system did not record which
If you added "0785641001+" to the article, the history was saved
I ask you to correct the pardon, otherwise describe why the system behaves this way
Axis of history change by product https://baza.cn.ua/admin/shop/products/64906/history/?userid=&filter2_key=va... According to the product, we changed the fields of the article Article on the back "785641001" added "0" axis so "0785641001" In history, the system did not record which If you added "0785641001+" to the article, the history was saved I ask you to correct the pardon, otherwise describe why the system behaves this way
when recording the history of changes, a non-strict comparison of the old and new values is used https://www.php.net/manual/ru/language.operators.comparison.php - actually when comparing "785641001" = "0785641001" since it considers both strings to be equivalent numbers
when recording the history of changes, a non-strict comparison of the old and new values is used
https://www.php.net/manual/ru/language.operators.comparison.php - actually when comparing "785641001" = "0785641001" since it considers both strings to be equivalent numbers
Tyndyk Maxim Vadimovich OneBox production wrote: when recording the history of changes, a non-strict comparison of the old and new values is used https://www.php.net/manual/ru/language.operators.comparison.php - actually when comparing "785641001" = "0785641001" since it considers both strings to be equivalent numbers
You have a pardon in the code, in the "Comparison of types", and you need to match not "number" with "string", but you need to match "term" with "string" and the same values will not be equal, correct the pardon or write what you give article to numeric type, i.e. "string"
[quote]
Tyndyk Maxim Vadimovich
OneBox production wrote:
when recording the history of changes, a non-strict comparison of the old and new values is used
https://www.php.net/manual/ru/language.operators.comparison.php - actually when comparing "785641001" = "0785641001" since it considers both strings to be equivalent numbers
[/quote]
You have a pardon in the code, in the "Comparison of types", and you need to match not "number" with "string", but you need to match "term" with "string" and the same values will not be equal, correct the pardon or write what you give article to numeric type, i.e. "string"
You have a pardon in the code, in the "Comparison of types", and you need to match not "number" with "string", but you need to match "term" with "string" and the same values will not be equal, correct the pardon or write what you give article to numeric type, i.e. "string"
Once again - not a strict comparison is used - in this case, the language given 2 values are equivalent as numbers. This is done on purpose so as not to litter the history of comparisons like "0 = 0.00", "1.1 = 1.10", etc. If this does not suit you - no problem, we can finalize the setting for you so that you have a strict comparison - it will take 3 hours (products / processes / contacts). Responsibility for the "garbage" in the story (according to the example above) remains with you. PS: if you claim about an error that something should work differently, justify it with some technical documentation (at least a technical task for the development of functionality). Otherwise, your "logic" is nothing more than your need.
[quote]
You have a pardon in the code, in the "Comparison of types", and you need to match not "number" with "string", but you need to match "term" with "string" and the same values will not be equal, correct the pardon or write what you give article to numeric type, i.e. "string"
[/quote]
Once again - not a strict comparison is used - in this case, the language given 2 values are equivalent as numbers. This is done on purpose so as not to litter the history of comparisons like "0 = 0.00", "1.1 = 1.10", etc.
If this does not suit you - no problem, we can finalize the setting for you so that you have a strict comparison - it will take 3 hours (products / processes / contacts). Responsibility for the "garbage" in the story (according to the example above) remains with you.
PS: if you claim about an error that something should work differently, justify it with some technical documentation (at least a technical task for the development of functionality). Otherwise, your "logic" is nothing more than your need.
Can you explain why you use logic for numeric fields in string fields and why you don't use logic in filters? It’s like it’s just illogical to go out, the article is “string” not “number”, for which reason it’s unreasonable to win here for numerical fields
Can you explain why you use logic for numeric fields in string fields and why you don't use logic in filters?
It’s like it’s just illogical to go out, the article is “string” not “number”, for which reason it’s unreasonable to win here for numerical fields
Can you explain why you use logic for numeric fields in string fields and why you don't use logic in filters?
I have already indicated how the functionality works.
It’s like it’s just illogical to go out, the article is “string” not “number”, for which reason it’s unreasonable to win here for numerical fields
Logic is an abstract concept, which in most cases is based only on the perception of a particular individual of a particular situation. Above, I offered you a solution, pointing out the possible consequences - you have the right to go through its implementation or not. PS: you have a boxed version of the product (according to the AS IS model) - and what you think is "not logical" does not mean that it does not work correctly or should work differently.
[quote]
Can you explain why you use logic for numeric fields in string fields and why you don't use logic in filters?
[/quote]
I have already indicated how the functionality works.
[quote]
It’s like it’s just illogical to go out, the article is “string” not “number”, for which reason it’s unreasonable to win here for numerical fields
[/quote]
Logic is an abstract concept, which in most cases is based only on the perception of a particular individual of a particular situation.
Above, I offered you a solution, pointing out the possible consequences - you have the right to go through its implementation or not.
PS: you have a boxed version of the product (according to the AS IS model) - and what you think is "not logical" does not mean that it does not work correctly or should work differently.
Please join the conversation. If you have something to say - please write a comment. You will need a mobile phone and an SMS code for identification to enter.
Log in and comment
Donate
You don't have enough funds in your account Top up