carcam / jresearch

2 stars 1 forks source link

Problem with new research area #18

Open righ3llo opened 6 years ago

righ3llo commented 6 years ago

Too few arguments to function JResearchAdminModelResearchArea::save(), 0 passed in C:\xampp\htdocs\mysite\administrator\components\com_jresearch\controllers\researchareas.php on line 82 and exactly 1 expected

I have this error when I try to create a new research area or when I want to modify the Uncategorized Research Area that exists by default.

Apache/2.4.26 (Win32) OpenSSL/1.0.2l PHP/7.1.7

lgalarra commented 6 years ago

Hi,

I suspect PHP 7 may be stricter when it comes to passing arguments to functions. It is safe to replace the referred line with:

if ($model->save($form)){

instead of

if ($model->save()){

Please, let me know the outcome.

Cheers, Luis