Commit 402b96f
committed
minor #7358 [File Uploads] Check if the entity contains the files (Guikingone)
This PR was submitted for the master branch but it was merged into the 2.7 branch instead (closes #7358).
Discussion
----------
[File Uploads] Check if the entity contains the files
After many tests, it seems that if the entity does not contains the files, the event throw a Exception, by checking the presence of files, the exception isn't thrown and the process can continue, this can be usefull if the entity isn't linked with file or if the file was stored into an array but not needed at this time.
The return isn't needed after the if statement.
Commits
-------
cc0d418 [File Uploads] Check if the entity contains the files1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
456 | 456 | | |
457 | 457 | | |
458 | 458 | | |
459 | | - | |
460 | | - | |
461 | | - | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
462 | 462 | | |
463 | 463 | | |
464 | 464 | | |
| |||
0 commit comments