Añadir pestaña subir archivos#40
Merged
daniel89fg merged 6 commits intoFacturaScripts:masterfrom Mar 17, 2026
Hidden character warning
The head ref may contain hidden characters: "A\u00f1adir-pesta\u00f1a-subir-archivos"
Merged
Conversation
Contributor
|
En el EditProyecto al hacer el loadData para docFiles no sería correcto, debe ser igual a como lo hiciste en EditTareaProyecto, yo lo cambio. En el EditTareaProyecto se te coló el constructor que no es necesario, yo lo quito. También se te olvido añadir la pestaña de archivos, yo la añado. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Cambios realizados (Plugins/Proyectos/Controller/EditTareaProyecto.php):
•Importado y usado DocFilesTrait.
•Añadida llamada a createViewDocFiles() en createViews().
•Añadido 'docfiles' a loadData() para cargar las relaciones de archivos.
•Añadidos casos en execPreviousAction para manejar add-file, delete-file, edit-file, unlink-file y sort-files.
Cambios realizados (Plugins/Proyectos/Controller/EditTareaProyecto.php):
•Importado DocFilesTrait y usado en la clase.
•Llamada a createViewDocFiles() en createViews().
•Añadida la carga de datos para 'docfiles' en loadData(), filtrando por idtarea.
•Añadido execPreviousAction() con casos para add-file, delete-file, edit-file, unlink-file y sort-files (delegando a los métodos del trait).
•Forzado $this->hasData = true en el constructor del controlador para que las pestañas no se desactiven en el modo "Nuevo"