Commit graph

21 commits

Author SHA1 Message Date
Jan Böhmer
15a31433e1 Fixed PHPstan warnings. 2022-03-04 13:22:40 +01:00
Jan Böhmer
3809539587 Implemented a stub DeviceRepository to prevent exception when try to delete a device.
Now the devices can not be deleted (but no exception), to prevent users to accidentally delete still useful devices from old Part-DB versions (as currently it is not possible to view which infos a device contains). This fixes issue #60.
2020-08-21 23:28:46 +02:00
Jan Böhmer
8b6fe757a0 Removed unnecessary getIDString() function in AbstractDBElement. 2020-05-13 21:19:23 +02:00
Jan Böhmer
a4ee46fed4 Dont order collections by attachment_type or supplier as this causes an exception on table views. 2020-04-01 17:00:50 +02:00
Jan Böhmer
63ca177699 Order data structrues in select pickers alphabetically by their names. 2020-04-01 16:43:42 +02:00
Jan Böhmer
a4802e290f Order attachments and part lots by a reasonable parameter. 2020-04-01 15:37:06 +02:00
Jan Böhmer
cb0aa7bc7a Fixed some psalm issues. 2020-03-29 23:13:25 +02:00
Jan Böhmer
ea302ded91 Fixed PHPstan issues. 2020-03-29 15:59:00 +02:00
Jan Böhmer
2899db0206 Allow to put parameters in different groups. 2020-03-24 15:08:56 +01:00
Jan Böhmer
719e21c0df Save element parameters in its own database table (dont use JSON)
This makes it easier to query for specific parameters.
2020-03-11 21:48:47 +01:00
Jan Böhmer
9e8771a4ee Changed license to AGPL3+ 2020-02-22 18:14:36 +01:00
Jan Böhmer
594c694ee0 Renamed the base DBElement classes to AbstractDBElement to comply with symfony recommendations. 2020-02-01 19:48:07 +01:00
Jan Böhmer
388e847b17 Applied symplify rules to codebase. 2020-01-05 22:49:00 +01:00
Jan Böhmer
9a7223a301 Fixed code style. 2020-01-04 20:24:09 +01:00
Jan Böhmer
1aed1d1d26 Fixed some inspection issues. 2020-01-04 20:14:42 +01:00
Jan Böhmer
6ddc937ec5 Fixed some inspection issues. 2019-11-10 14:00:56 +01:00
Jan Böhmer
e557bdedd5 Added an PHP CS fixer config file and applied it to files.
We now use the same the same style as the symfony project, and it allows us to simply fix the style by executing php_cs_fixer fix in the project root.
2019-11-09 00:47:20 +01:00
Jan Böhmer
787e498586 Updated copyright headers. 2019-11-01 13:40:30 +01:00
Jan Böhmer
eb1d8fd4e4 Added possibility to add/edit attachments on Admin pages. 2019-09-24 18:28:35 +02:00
Jan Böhmer
ccc345cd1b Changed DB structure the way, many more elements can have attachments
Also every Element has now a preview attachment field. For the user this will be used as profile picture.
2019-09-24 13:39:49 +02:00
Jan Böhmer
7826e3d2ad Added entities and properties for some future features. 2019-08-12 15:47:57 +02:00