Skip to content

Commit

Permalink
# Fixed (very recent bug) content type being zeroed during save via for
Browse files Browse the repository at this point in the history
frontend item form, causing custom fields to be lost
  • Loading branch information
ggppdk committed May 27, 2015
1 parent 4bcf788 commit edb3930
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/models/parentclassitem.php
Expand Up @@ -1738,7 +1738,7 @@ function store($data)
// New or Existing item must use the current user + new main category to calculate 'Edit State' privelege
$item->created_by = $user->get('id');
$item->catid = $data['catid'];
$item->type_id = $data['type_id'];
$item->type_id = isset($data['type_id']) ? $data['type_id'] : $item->type_id;
$canEditState = $this->canEditState( $item, $check_cat_perm=true );

// Restore old main category & creator (owner) (in case following code chooses to keep them)
Expand Down

0 comments on commit edb3930

Please sign in to comment.