Skip to content
This repository has been archived by the owner on May 19, 2020. It is now read-only.

Commit

Permalink
Fix issue #1150
Browse files Browse the repository at this point in the history
Resolves #1150.
Added a missing line in order to fully populate image and file type extend fields in the post editor. Saved images and files are no longer wiped out by editing a post as described in #1150.
  • Loading branch information
evansharp committed Jan 24, 2017
1 parent 8db6720 commit 499e887
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions anchor/models/extend.php
Expand Up @@ -112,6 +112,7 @@ public static function html($item)
$html .= '</span>
<span class="file">
<input id="extend_' . $item->key . '" name="extend[' . $item->key . ']" type="file">
<input type="hidden" name="extend[' . $item->key . ']" value="' . asset('content/' . $value) . '">
</span>';

if ($value) {
Expand Down

0 comments on commit 499e887

Please sign in to comment.