Commit Graph

241 Commits

Author SHA1 Message Date
Samuel Georges 59c1d57b3f Revert "fix hardcoded sort order name" 2016-08-02 19:53:20 +10:00
Cesar e0f5b560bc fix hardcoded sort order name 2016-07-30 18:50:32 -04:00
Samuel Georges fdcfe801a7 Write tests for #2258
Prevent nulling when model fails validation
2016-07-30 10:59:25 +10:00
Luke Towers b26eeed03c Enable refresh on form controller requests (correct branch)
This adds support for a redirect to the current page (a refresh) to be returned by the form controller. An example use case is adding `data-request-data="refresh:1"` to the save button on an update form. I'm using it for an update form that disables certain fields (including a relationRender partial) based on values submitted on that page. Refreshing the view after saving allows my disabling rules to take effect.
2016-07-27 09:05:12 -06:00
Samuel Georges dbdf8f780a Merge pull request #2128 from slipgrom/develop
morphMany Relation support
2016-07-16 14:08:35 +10:00
Samuel Georges 8e4142558b Merge pull request #1741 from ARH-Digital/develop
Add morphic relations to backend
2016-07-09 20:38:21 +10:00
Roman Gerasimov 587b8a449d morphMany Relation support 2016-06-17 10:55:03 +03:00
Samuel Georges cdb35f5070 UserPreferences -> UserPreference
(Models should be singular)
2016-05-27 07:35:32 +10:00
Jérémy Gaulin 3556fe2869 Fix class name used on stream_filter_register to match the refactored class name. 2016-05-21 22:35:29 +02:00
Samuel Georges 3bad70f041 Relation controller now applies the defined constraints by default
Relation controller now supports scope and conditions for the manage mode (list)
Logic has been modified across recordfinder and filter that only allows one constraint in this order (1. conditions, 2. scope, 3. defined constraints (where applicable))
Fixes #1203
2016-05-17 05:17:40 +10:00
Samuel Georges e52fa7bd33 Compat with CSV v8 2016-04-28 06:39:35 +10:00
Samuel Georges 0d451eaa78 Be less strict about formExtendModel returning a model 2016-04-28 05:47:14 +10:00
Samuel Georges 0504da41f2 Add hasFields methods
formHasOutsideFields, formHasPrimaryTabs + formHasSecondaryTabs
2016-04-23 05:13:08 +10:00
Samuel Georges abaa65cc0e Cut back the design
Switch to hard lines
2016-04-22 08:21:08 +10:00
Samuel Georges 51bef96db9 More styling changes and other minor improvements 2016-04-21 04:52:21 +10:00
Samuel Georges bff35e5f1a Lists can now define search scope or mode (see docs) 2016-04-19 19:54:22 +10:00
Samuel Georges a548d6ee56 Merge remote-tracking branch 'remotes/origin/stable' into develop
Conflicts:
	modules/backend/lang/en/lang.php
	modules/backend/lang/fr/lang.php
2016-04-01 13:00:32 +11:00
Samuel Georges a035acdc2c Tidy up some logic, restore firstRowTitles setting
Refs #1856
2016-03-26 14:10:05 +11:00
Jérémy Gaulin 2a60e34558 Import options to configure the CSV reader + patch to prevent unfriendly error to be thrown due to bad import source file encoding (on AJAX request) 2016-03-26 12:54:13 +11:00
Samuel Georges 6f6a3cc78c Merge pull request #1855 from gabsource/enchancement/import-export-french-translation
French translations for import/export errors strings
2016-03-26 12:38:42 +11:00
Samuel Georges a585fe3316 Share pivot|list title logic
We already had a key for this... spooky!
Refs #1755
2016-03-25 14:24:38 +11:00
Samuel Georges e19ae42e45 (Rollback) Keep instances to themselves 2016-03-25 14:17:13 +11:00
Samuel Georges 762c5e754b Switch the manage popup title according to the button pressed
Fixes #1755
2016-03-25 14:03:11 +11:00
Samuel Georges 6e7fa7de88 Allow CmsObjects to define their own Twig cache key 2016-03-21 13:42:03 +11:00
Jérémy Gaulin 8debdf023a Externalized import/export errors strings + french translation 2016-03-20 22:22:36 +01:00
Samuel Georges d76863a3ec Merge branch 'develop' into stable
Conflicts:
	composer.json
2016-02-27 14:55:52 +11:00
Samuel Georges fa61ef2df9 Fortify index_onDelete a little more
Refs #1805
2016-02-27 13:58:59 +11:00
Pásztor Gábor 984674d987 Missing return 2016-02-25 07:44:02 +01:00
Pásztor Gábor c17e9b0e33 Add index_onDelete method to ListController behavior. 2016-02-25 07:42:07 +01:00
Samuel Georges ce202c7951 create_onSave() forgot to extend model 2016-02-23 14:36:00 +11:00
Samuel Georges 95f4be8b68 Include user id in cache key
Fixes #1740
2016-02-20 09:39:18 +11:00
Samuel Georges 2e819f0142 Remove deprecated method 2016-02-20 08:19:14 +11:00
Samuel Georges 3ee2ec86f8 Allow toolbarButtons: false 2016-02-15 17:58:59 +11:00
Samuel Georges e0fc27b0cb Refs #1727 - Tabs to spaces 2016-02-13 15:47:34 +11:00
Samuel Georges 7d3a73cd31 Merge pull request #1727 from tschallacka/fix_for_static_primary_key_naming_relationcontroller
Fix for static primary key naming relationcontroller
2016-02-13 15:46:07 +11:00
Joshua Wilson 6f3d7a58f2 Phpdoc cleanup for System\Traits
removed in WidgetMaker trait

phpdoc cleanup of backend traits and classes

Minor fix for cases when file is not found
2016-02-13 14:06:50 +11:00
Samuel Georges 6562170d2a Merge pull request #1719 from alxy/patch-12
Fix doubble-applied filters
2016-02-13 13:56:39 +11:00
Samuel Georges cd055ad437 Fixes formExtendModel method so it actually works.
The extension must occur after the ::find() method, which will return a fresh object. When it occurs before, any changes to the model are lost. Where this may have prior been used to dynamically return a different model, the formCreateModelObject override method should return this value now.
2016-02-10 19:38:35 +11:00
Aaron 0c4c39fddb Add morphic relations to backend 2016-02-01 14:53:53 +10:00
tschallacka e4b0c0fe27 Fixed static id naming primary key
RelationController forced belongs to relations to have a primary key named id.
If primary key was named differently it wouldn't register the onclick.
This fixes that by taking the primary key name from the model.
2016-01-26 14:17:18 +01:00
Alexander Guth 17e0a2afa7 Fix doubble-applied filters 2016-01-23 17:57:08 +01:00
Pásztor Gábor c678cc1988 Remove unneded imports from ListController behavior 2016-01-15 09:12:26 +01:00
Samuel Georges 01b2d0d186 Add relation-inset class, fixes relation-flush 2015-12-19 09:53:12 +11:00
myst6re 55bceba32c Commit deferred data when creating/updating a pivot table. 2015-12-12 11:44:59 +11:00
Vojta Svoboda 0b6aa8750c Update fields_export.yaml 2015-11-11 16:08:50 +01:00
Samuel Georges 56f66ada53 Revert indentation from #1545 2015-10-31 17:22:48 +11:00
Samuel Georges 3b885ade56 Merge pull request #1545 from keiosweb/develop
translation strings in import-export behaviour and polish translations
2015-10-31 17:09:15 +11:00
Samuel Georges c30b34e4d9 In special cases, has one/many will require a foreign key set
For example: to pass any constraints imposed by the database
This new logic emulates the "create" method on the relation object
Fixes #1541
2015-10-31 16:40:16 +11:00
Kuba 031b9cdbe6 translation strings in import-export behaviour and polish translations 2015-10-21 19:47:57 +02:00
Samuel Georges 5c294b78bd Add support to extend query on 'nested' sortMode - refs #1519
Recompile assets, minor cleanup
2015-10-17 12:44:16 +11:00