1283 Posts
Bucklash
7 years ago
2
Topic

Hi Folks

I have a select dynamic field that pulls in data based on the id from url

WHERE parent_id =$uri->get('id')<br>

 

However, this is only meant to be used when editing the form therefore I apply workflow 'edit'.


The field is not visible when adding content but it seems that the sql query is still performed... therefore I receive an error due to this sql query having no 'id' value.

Bucklash

Get a VIP membership
4229 Posts
Kadministrator
7 years ago
0
Level 1

with restriction query should not be executed, please report this on tracker

1283 Posts
Bucklash
7 years ago
0
Level 1

Hi 

I confirm that I was not doing things correctly

I had 

$uri->get('id');

but it should have been 

$uri->getInt('id');

So, solved...nice

Get a Book for SEBLOD