Skip to content
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

Console error, variable undefined in PHP 8 #420

Open
Azonesbz opened this issue Nov 7, 2023 · 1 comment
Open

Console error, variable undefined in PHP 8 #420

Azonesbz opened this issue Nov 7, 2023 · 1 comment

Comments

@Azonesbz
Copy link

Azonesbz commented Nov 7, 2023

When I try to configure a model, the "definition of data" model variable is not visible.

Error report :

console.log('window_id','

[2023-11-06 16:16:04] (ERROR @ core/components/migx/elements/tv/migx.tpl : 85)
PHP warning: Undefined array key "window_id"

console.log('window_id','{$smarty.request.window_id}'); {if array_key_exists('window_id',$smarty.request)} this.parent_window = '{$smarty.request.window_id}'; {/if}

fixed:
{if array_key_exists('window_id',$smarty.request)} console.log('window_id','{$smarty.request.window_id}'); this.parent_window = '{$smarty.request.window_id}'; {/if}

@Azonesbz Azonesbz changed the title Console error, variable undefined Console error, variable undefined in PHP 8 Nov 7, 2023
@smg6511
Copy link

smg6511 commented Apr 6, 2024

@Bruno17 - I was looking at this and wondering if it's necessary to get the value via $smarty.request here (and in the updatedwindow.tpl file); can you just use the $window_id variable that's established in the main MIGX class's prepareGrid method (~ line 1558)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants