anchor.diff:                  false -> AutogeneratedProps
               end,
               ok = preflight_check(Id, SafeProps, Context),
  -                
  +
               %% This function will be executed in a transaction
               TransactionF = fun(Ctx) ->
                   {RscId, UpdateProps, BeforeProps, BeforeCatList, RenumberCats} = case Id of
  
positive.code:                 end,
  
                  RawProps = m_rsc:get_raw(Id, Context),
                  case Id == insert_rsc orelse Changed orelse is_changed(RscId, RawProps, UpdatePropsN1) of
                      true ->
                          UpdatePropsPrePivoted = z_pivot_rsc:pivot_resource_update(UpdatePropsN1, RawProps),
                          {ok, _RowsModified} = z_db:update(rsc, RscId, UpdatePropsPrePivoted, Ctx),
  
negative.code: 
  
  %% @doc Check if the update will change the data in the database
  %% @spec is_changed(Current, Props) -> bool()
  is_changed(Current, Props) ->
      is_prop_changed(Props, Current).
  
      is_prop_changed([], _Current) ->
  