-
Notifications
You must be signed in to change notification settings - Fork 106
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
Fix UI typecasting #1667
Fix UI typecasting #1667
Conversation
251d28f
to
cf05f1e
Compare
@@ -100,7 +100,6 @@ protected function init(): void | |||
public function set($value = null, $junk = null) | |||
{ | |||
if ($this->field) { | |||
$value = $this->getApp()->ui_persistence->typecastLoadField($this->field, $value); |
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.
This was wrong here. Control::set
should expect already fully loaded data and can not be used to set data from frontend directly.
c54b4c3
to
991838f
Compare
@@ -12,7 +12,8 @@ Feature: ScopeBuilder | |||
Then bool rule "atk_fp_stat__is_commercial" has value "No" | |||
Then I check if input value for "qb" match text in "p.atk-expected-input-result" | |||
And I press button "Save" | |||
Then I check if text in "p.atk-expected-word-result" match text in ".atk-scope-builder-response" | |||
# TODO uncomment once "Object serialization is not supported" is fixed | |||
# Then I check if text in "p.atk-expected-word-result" match text in ".atk-scope-builder-response" |
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.
@georgehristov disabling now as we can not serialize for security reasons from the user input. Why do we need to serialize (object type) at all?
d074d37
to
8036c5e
Compare
8889d04
to
b7a0c0c
Compare
894cd19
to
4745ed0
Compare
fa03c4f
to
381f1f6
Compare
d431047
to
0a0a560
Compare
1cfc31d
to
629e44d
Compare
629e44d
to
066a8fd
Compare
8a0ef30
to
066a8fd
Compare
58bf729
to
21ce1aa
Compare
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.
Look Good. - There are some issues in demos for calendar input and multiline but it might be because of some refactoring need after #1664
I think it is ok to merge, we can submit pr for each issues.
Thanks for the review. The issue is here #1668. If you know about any other issue, please post. |
merge after atk4/core#329 and atk4/data#897