diff --git a/include/controllers/default/cockpit2/api/community/index.php b/include/controllers/default/cockpit2/api/community/index.php index 9df114ac1..d04f9615d 100644 --- a/include/controllers/default/cockpit2/api/community/index.php +++ b/include/controllers/default/cockpit2/api/community/index.php @@ -181,6 +181,10 @@ class Controller_api_community extends Crunchbutton_Controller_RestAccount { $community->close_3rd_party_delivery_restaurants_note = ''; } + if( $this->request()[ 'driver_restaurant_name' ] ){ + $community->driver_restaurant_name = $this->request()[ 'driver_restaurant_name' ]; + } + $dont_warn_till = $this->request()[ 'dont_warn_till_fmt' ]; if( $dont_warn_till && ( $community->close_all_restaurants || $community->close_3rd_party_delivery_restaurants ) ){ $dont_warn_till = new DateTime( $dont_warn_till, new DateTimeZone( c::config()->timezone ) ); diff --git a/include/views/default/cockpit2/frontend/communities/communities-form.phtml b/include/views/default/cockpit2/frontend/communities/communities-form.phtml index d146a0142..a215dd49a 100644 --- a/include/views/default/cockpit2/frontend/communities/communities-form.phtml +++ b/include/views/default/cockpit2/frontend/communities/communities-form.phtml @@ -135,6 +135,14 @@ +
  • +
    Auto closed message:
    +
    +
    + Required. +
    +
  • +
  • Close All Restaurants:
    @@ -166,7 +174,7 @@
  • Close 3rd Party Delivery Restaurants Note (follow this same format. e.g. - "Launching Mon 2/2 6PM-12AM"):
    -
    +
    Required.