Fix on show_always_parsing
Change-Id: I338704bd1aed4a1d0faa693eba554d69656c8d90 Signed-off-by: smarcet <smarcet@gmail.com>
This commit is contained in:
parent
39fcfb3dd6
commit
4eaf8dd7a7
@ -11,6 +11,8 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
**/
|
||||
|
||||
use App\Http\Utils\MultipartFormDataCleaner;
|
||||
use App\Models\Foundation\Summit\Repositories\ISummitDocumentRepository;
|
||||
use App\Services\Model\ISummitDocumentService;
|
||||
use Illuminate\Http\Request as LaravelRequest;
|
||||
@ -91,6 +93,8 @@ class OAuth2SummitDocumentsApiController extends OAuth2ProtectedController
|
||||
'show_always' => 'sometimes|boolean',
|
||||
];
|
||||
|
||||
$payload = MultipartFormDataCleaner::cleanBool('show_always', $payload);
|
||||
|
||||
// Creates a Validator instance and validates the data.
|
||||
$validation = Validator::make($payload, $rules);
|
||||
|
||||
@ -154,6 +158,8 @@ class OAuth2SummitDocumentsApiController extends OAuth2ProtectedController
|
||||
'show_always' => 'sometimes|boolean',
|
||||
];
|
||||
|
||||
$payload = MultipartFormDataCleaner::cleanBool('show_always', $payload);
|
||||
|
||||
// Creates a Validator instance and validates the data.
|
||||
$validation = Validator::make($payload, $rules);
|
||||
|
||||
|
@ -97,6 +97,10 @@ Content-Disposition: form-data; name="description"
|
||||
|
||||
ndndnllll
|
||||
------WebKitFormBoundaryt61VjbNKJb4PiKXk
|
||||
Content-Disposition: form-data; name="show_always"
|
||||
|
||||
true
|
||||
------WebKitFormBoundaryt61VjbNKJb4PiKXk
|
||||
Content-Disposition: form-data; name="file_preview"
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user