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

[FIX] Assign Reseller Purchased DID #687

Merged
merged 5 commits into from Jan 31, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Prev Previous commit
[FIX] Assign Reseller Purchased DID
  • Loading branch information
sanketinx committed Jan 20, 2023
commit 50b374eae271f421675e27079caf0383b18f3a25
36 changes: 16 additions & 20 deletions web_interface/astpp/application/modules/accounts/controllers/accounts.php 100755 → 100644
Expand Up @@ -1360,30 +1360,26 @@ function customer_did_country()
}
}
}
}

// ASTPPCOM-1333 Start
if (isset($provience) && $provience != "") {

$city_list = array();
$city_list_array = array();
$this->db->where('city NOT LIKE', '');
$city_list = $this->db_model->getSelect("distinct(city)", "dids", array(
'province' => $provience,
'country_id' => $country_id
));
if ($city_list->num_rows() > 0) {
$city_list_array = $city_list->result_array();
foreach ($city_list_array as $key => $val) {
foreach ($val as $key1 => $val1) {
// Jaimin ASTPPCOM-845
$data['city_list'][] = '<option value="' . $val1 . '">' . $val1 . '</option>';
// END
// ASTPPCOM-1333 Start
if (isset($provience) && $provience != "") {
// ASTPPCOM-1333 END
$this->db->where('city NOT LIKE', '');
$city_list = $this->db_model->getSelect("city", "dids", array(
// ASTPPCOM-1333 Start
'province' => $provience,
// ASTPPCOM-1333 END
'country_id' => $country_id
));
if ($city_list->num_rows() > 0) {
$city_list_array = $city_list->result_array();
foreach ($city_list_array as $key => $val) {
foreach ($val as $key1 => $val1) {
$data['city_list'][] = '<option value="'. $val1 .'"> '. $val1 .' </option>';
}
}
}
}
}
// ASTPPCOM-1333 END

$reseller_id = $accountinfo['type'] == 1 ? $accountinfo['id'] : 0;
if (isset($entity_info['reseller_id']) && $entity_info['reseller_id'] > 0) {
Expand Down