mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 09:03:49 +00:00
Fix. Redirect back to correct profile after delete setting. (#2501)
Fix. Add setting (seems need also set sip_profile_uuid) Change. Order settings by name when output.
This commit is contained in:
committed by
FusionPBX
parent
047ecaffd2
commit
1b2cdb633d
@@ -202,6 +202,7 @@
|
||||
//get the child data
|
||||
$sql = "select * from v_sip_profile_settings ";
|
||||
$sql .= "where sip_profile_uuid = '".$sip_profile_uuid."' ";
|
||||
$sql .= "order by sip_profile_setting_name ";
|
||||
$prep_statement = $db->prepare($sql);
|
||||
$prep_statement->execute();
|
||||
$sip_profile_settings = $prep_statement->fetchAll(PDO::FETCH_NAMED);
|
||||
@@ -209,7 +210,7 @@
|
||||
//add an empty row
|
||||
$x = count($sip_profile_settings);
|
||||
$sip_profile_settings[$x]['sip_profile_setting_uuid'] = uuid();
|
||||
$sip_profile_settings[$x]['sip_profile_uuid'] = '';
|
||||
$sip_profile_settings[$x]['sip_profile_uuid'] = $sip_profile_uuid;
|
||||
$sip_profile_settings[$x]['sip_profile_setting_name'] = '';
|
||||
$sip_profile_settings[$x]['sip_profile_setting_value'] = '';
|
||||
$sip_profile_settings[$x]['sip_profile_setting_enabled'] = '';
|
||||
@@ -225,7 +226,7 @@
|
||||
//add an empty row
|
||||
$x = count($sip_profile_domains);
|
||||
$sip_profile_domains[$x]['sip_profile_domain_uuid'] = uuid();
|
||||
$sip_profile_domains[$x]['sip_profile_uuid'] = '';
|
||||
$sip_profile_domains[$x]['sip_profile_uuid'] = $sip_profile_uuid;
|
||||
$sip_profile_domains[$x]['sip_profile_domain_name'] = '';
|
||||
$sip_profile_domains[$x]['sip_profile_domain_alias'] = '';
|
||||
$sip_profile_domains[$x]['sip_profile_domain_parse'] = '';
|
||||
@@ -372,7 +373,7 @@
|
||||
echo " <input class='formfld' type='text' name='sip_profile_settings[$x][sip_profile_setting_description]' maxlength='255' value=\"".$row["sip_profile_setting_description"]."\">\n";
|
||||
echo " </td>\n";
|
||||
echo " <td class='list_control_icons' style='width: 25px;'>\n";
|
||||
echo " <a href=\"sip_profile_setting_delete.php?id=".$row["sip_profile_setting_uuid"]."&sip_profile_setting_uuid=".$row["sip_profile_setting_uuid"]."&a=delete\" alt='delete' onclick=\"return confirm('Do you really want to delete this?')\"><button type='button' class='btn btn-default list_control_icon'><span class='glyphicon glyphicon-remove'></span></button></a>\n";
|
||||
echo " <a href=\"sip_profile_setting_delete.php?id=".$row["sip_profile_setting_uuid"]."&sip_profile_uuid=".$sip_profile_uuid."&a=delete\" alt='delete' onclick=\"return confirm('Do you really want to delete this?')\"><button type='button' class='btn btn-default list_control_icon'><span class='glyphicon glyphicon-remove'></span></button></a>\n";
|
||||
echo " </td>\n";
|
||||
echo " </tr>\n";
|
||||
$x++;
|
||||
|
||||
Reference in New Issue
Block a user