Remote Framework, client_update

Discussion in 'Developers' Forum' started by desanidesigns, Mar 14, 2012.

  1. desanidesigns

    desanidesigns New Member

    Is there somewhere that would allow updating a client based on their Master Template? What I'm running into is that when I update a client's Master Template remotely, without specifying all the fields to update, everything gets reset to zero. That is, unless, I manually go to that client from the control panel. Even without saving, it sees the template and sets their values accordingly.

    I need to be able to update their values as soon as (or with the 1 min cron) the master template for that client is changed.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    All update functions require it that you pass all available values. So the procedure to update a item with the remote frameowk is to use the _get function to get the full record, then modify one or more fields that have to be modified and then pass back the full array with all values to the update function.
     

Share This Page