Skip to content

Commit

Permalink
remove CrudField changes
Browse files Browse the repository at this point in the history
  • Loading branch information
pxpm committed Oct 15, 2024
1 parent 3400a12 commit 04a7b73
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/app/Library/CrudPanel/CrudField.php
Original file line number Diff line number Diff line change
Expand Up @@ -221,19 +221,6 @@ public function on(string $event, \Closure $closure)
return $this->save();
}

/**
* Mark the field has having upload functionality, so that the form would become multipart.
*
* @param bool $upload
* @return self
*/
public function upload($upload = true)
{
$this->attributes['upload'] = $upload;

return $this->save();
}

/**
* When subfields are defined, pass them through the guessing function
* so that they have label, relationship attributes, etc.
Expand All @@ -253,6 +240,19 @@ public function subfields($subfields)
return $this->save();
}

/**
* Mark the field has having upload functionality, so that the form would become multipart.
*
* @param bool $upload
* @return self
*/
public function upload($upload = true)
{
$this->attributes['upload'] = $upload;

return $this->save();
}

/**
* Save the validation rules on the CrudPanel per field basis.
*
Expand Down

0 comments on commit 04a7b73

Please sign in to comment.