public function execute()
 {
     $listing_field_sid = SJB_Request::getVar('sid', null);
     if (!is_null($listing_field_sid)) {
         $listing_field_info = SJB_ListingFieldManager::getFieldInfoBySID($listing_field_sid);
         SJB_ListingFieldManager::deleteListingFieldBySID($listing_field_sid);
         SJB_HelperFunctions::redirect(SJB_System::getSystemSettings('SITE_URL') . "/edit-listing-type/?sid=" . $listing_field_info['listing_type_sid']);
     }
     echo 'The system  cannot proceed as Listing Field SID is not set';
 }
Esempio n. 2
0
 public function execute()
 {
     $listing_field_sid = SJB_Request::getVar('sid', null);
     if (!is_null($listing_field_sid)) {
         $listingFieldID = SJB_ListingFieldManager::getListingFieldIDBySID($listing_field_sid);
         if ($listingFieldID != 'Location') {
             SJB_ListingFieldManager::deleteListingFieldBySID($listing_field_sid);
         }
         SJB_HelperFunctions::redirect(SJB_System::getSystemSettings('SITE_URL') . "/listing-fields/");
     }
     echo 'The system  cannot proceed as Listing Field SID is not set';
 }