simontelephonics / smsconnector

SMS Connector module for FreePBX 16 and 17
https://simon.tel/open-source/
GNU General Public License v3.0
43 stars 16 forks source link

PDOException thrown with message "SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'providerid' cannot be null" #3

Closed vsc55 closed 1 year ago

vsc55 commented 1 year ago

Adding a number if the provider is left blank produces the following error.

PDOException thrown with message "SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'providerid' cannot be null"

Stacktrace:
#5 PDOException in /usr/src/freepbx/smsconnector/Smsconnector.class.php:248
#4 PDOStatement:execute in /usr/src/freepbx/smsconnector/Smsconnector.class.php:248
#3 FreePBX\modules\Smsconnector:addNumber in /usr/src/freepbx/smsconnector/Smsconnector.class.php:78
#2 FreePBX\modules\Smsconnector:doConfigPageInit in /usr/src/freepbx/framework/amp_conf/htdocs/admin/libraries/BMO/GuiHooks.class.php:291
#1 FreePBX\GuiHooks:doBMOConfigPage in /usr/src/freepbx/framework/amp_conf/htdocs/admin/libraries/BMO/GuiHooks.class.php:252
#0 FreePBX\GuiHooks:doConfigPageInits in /usr/src/freepbx/framework/amp_conf/htdocs/admin/config.php:445