# |
Apr 25th 2018, 15:38 |
nosmallint |
switched back to 2.9.9 for debugging this, had the issue in 2.10.0 and latest 2.10.x |
# |
Apr 25th 2018, 15:38 |
lorenzo |
I believe so |
# |
Apr 25th 2018, 15:37 |
nosmallint |
@lorenzo: so this is actually a regression and the fault's not on my side? |
# |
Apr 25th 2018, 15:37 |
nosmallint |
@ itmpls: data type in PostgreSQL is "smallint" :) |
# |
Apr 25th 2018, 15:37 |
saltlake |
in 3.6 |
# |
Apr 25th 2018, 15:36 |
saltlake |
Is Session a helper or component? |
# |
Apr 25th 2018, 15:36 |
nosmallint |
uuh |
# |
Apr 25th 2018, 15:35 |
lorenzo |
nosmallint sounds like a regression in the latest version, unfortunately |
# |
Apr 25th 2018, 15:34 |
itmpls |
can't you just add type='number' yourself? |
# |
Apr 25th 2018, 15:34 |
itmpls |
curious* of the db column type. i want to think for me it auto-detected and set number, but i'm probably remembering wrong |
# |
Apr 25th 2018, 15:34 |
nosmallint |
Using PostgreSQL btw |
# |
Apr 25th 2018, 15:34 |
nosmallint |
Now the data type is "smallinteger" and the input type is "text". |
# |
Apr 25th 2018, 15:33 |
itmpls |
just curios |
# |
Apr 25th 2018, 15:33 |
nosmallint |
The type="text" is the issue, before 2.10.0 the data type was integer, the input type was "number". |
# |
Apr 25th 2018, 15:33 |
itmpls |
what's the column type in the db? |
# |
Apr 25th 2018, 15:32 |
nosmallint |
No special $options, contains only "'default' => (int) 0". HTML output is "<input name="data[Mymodule][Myid]" separator="andamp;nbsp;" value="0" id="MymoduleMyid" required="required" type="text">" |
# |
Apr 25th 2018, 15:31 |
itmpls |
hi saltlake |
# |
Apr 25th 2018, 15:30 |
itmpls |
@dereuromark would an event be fitting? actually this would be setting it on an associated model though that doesn't change the circumstances |
# |
Apr 25th 2018, 15:29 |
saltlake |
HI all |
# |
Apr 25th 2018, 15:25 |
itmpls |
since I started with 3.4 |
# |
Apr 25th 2018, 15:25 |
itmpls |
i've only used ->control mainly |
# |
Apr 25th 2018, 15:24 |
itmpls |
what are all the options you pass to ->input ? |
# |
Apr 25th 2018, 15:23 |
nosmallint |
Cakephp was manually updated vie replacing lib/Cake with the new version, then re-baking models, controllers and views. |
# |
Apr 25th 2018, 15:22 |
nosmallint |
Am I missing something here? Read a lot of changelogs, diff-ed the packages, even tried to debug FormHelper.php |
# |
Apr 25th 2018, 15:20 |
nosmallint |
I'm using cakephp-2.9.9 without issues. After upgrading to 2.10.0 (which introduced new smallinteger data type) FormHelper->input seems to create all smallinteger input fields with input type 'text' instead of 'number', which effectively disables automatic validation |
# |
Apr 25th 2018, 15:19 |
lorenzo |
so far so good nosmallint :slightly_smiling_face: |
# |
Apr 25th 2018, 15:18 |
nosmallint |
Hello everybody, this is my first time here so if I'm misbehaving somehow please tell me |
# |
Apr 25th 2018, 15:18 |
itmpls |
i guess i could check for an id there |
# |
Apr 25th 2018, 15:17 |
itmpls |
i wanted to only bind it by $entity->isNew() |
# |
Apr 25th 2018, 15:17 |
dereuromark |
you can add it to normal payload patched in ($data array) |
# |
Apr 25th 2018, 15:16 |
dereuromark |
as the name said there is no entity yet. |
# |
Apr 25th 2018, 15:15 |
itmpls |
assuming it's by design and maybe there's a better event/way i can do it |
# |
Apr 25th 2018, 15:14 |
itmpls |
is there a reason i can't access the entity in beforeMarshal? i'm trying to figure out the best place to put a randomly generated password to the entity which is required in validation, thus can't do it in beforesave/aftersave. at the controller level, i'm doing this in 3 areas so i don't want to copy that around |
# |
Apr 25th 2018, 14:57 |
neon1024 |
As I know we have a few Danes in channel :slightly_smiling_face: |
# |
Apr 25th 2018, 14:57 |
neon1024 |
Danish games are on sale! https://store.steampowered.com/sale/gamesfromdenmark/ |
# |
Apr 25th 2018, 14:18 |
neon1024 |
You’ve also forgotten that it might be in /vendor/me/mypackage/src/.. |
# |
Apr 25th 2018, 14:17 |
neon1024 |
If you put a placeholder in, people would literally create something like /plugin/ExamplePlugin and come here saying it doesn’t work |
# |
Apr 25th 2018, 14:17 |
neon1024 |
If you didn’t put in the plugin name, how would the exception renderer know what it was? |
# |
Apr 25th 2018, 14:13 |
jotpe |
Confirm you have created the file: Layout/Email/html/test.ctp in *one of the following paths*: xxx/src/Template/Plugin/MassMailer/Layout/Email/html/test.ctp xxx/plugins/MassMailer/src/Template/Layout/Email/html/test.ctp xxx/src/Template/Layout/Email/html/test.ctp |
# |
Apr 25th 2018, 14:13 |
jotpe |
Maybe it would be good idea to change the Helptext then? |
# |
Apr 25th 2018, 14:08 |
dereuromark |
fallbacks are usually a bad magic here |