Commit graph

376 commits

Author SHA1 Message Date
Marc Michalsky
96c072eb8e let CRM_Twingle_Profile class handle its validation 2024-04-05 12:35:12 +02:00
Jens Schuppe
aa2c938abe Merge branch 'pick_profile_by_id'
[#73] Identify profiles by ID
2024-04-05 12:28:38 +02:00
Jens Schuppe
8bcdff4a85 Fix PHPStan issues 2024-04-05 12:25:00 +02:00
Jens Schuppe
fc40af8db5 Fix code style 2024-04-04 12:14:00 +02:00
Jens Schuppe
d7b066751a PHP Code Sniffer fixes 2024-04-03 12:22:39 +02:00
Jens Schuppe
6313fffa44 Merge branch 'extend_custom_field_mapping'
[#66] Extend custom field mapping
2024-04-03 12:09:42 +02:00
Jens Schuppe
47756f68b4 Correct indentation 2024-04-03 12:02:32 +02:00
Marc Michalsky
bd54c039c8 make all fields available for custom mapping
This is useful to be able to map fields like `purpose` or `remarks` to custom fields.
2024-04-03 12:01:23 +02:00
Jens Schuppe
5efed1f6c8 Fix @throws tags with wrong class name 2024-03-25 16:03:07 +01:00
Marc Michalsky
f81b476a30 fix exception on profile creation 2024-03-25 15:58:36 +01:00
Marc Michalsky
aef1ae7396 refactoring 2024-03-25 15:58:36 +01:00
Marc Michalsky
4feeb01611 make sure that default values are present 2024-03-25 15:58:26 +01:00
Marc Michalsky
09dda832a4 validate profile when copying 2024-03-25 15:58:11 +01:00
Marc Michalsky
c7e51b4d3c do not attempt to delete unverified profile_id 2024-03-25 15:58:11 +01:00
Marc Michalsky
6f6b9e0599 use correct error code 2024-03-25 15:58:11 +01:00
Marc Michalsky
a16be91822 include profile name in update query 2024-03-25 15:58:11 +01:00
Marc Michalsky
d9e51c67f6 use the id instead of the name to look up profiles 2024-03-25 15:58:11 +01:00
Jens Schuppe
1d9e973e46 Merge branch 'use_custom_exeptions'
[#72] Create custom exceptions
2024-03-25 15:52:29 +01:00
Jens Schuppe
fe0ce3f57d Fix @throws tag with wrong class name 2024-03-25 15:51:58 +01:00
Jens Schuppe
53745a3e07 PHP Code Sniffer fixes 2024-03-25 15:49:01 +01:00
Jens Schuppe
4e072b416a Move exception class files into correct directory according to namespace 2024-03-25 15:45:00 +01:00
Marc Michalsky
b0d5bdefa5 use correct namespace 2024-03-25 15:45:00 +01:00
Marc Michalsky
1875861735 pass $error_code to parent BaseException 2024-03-25 15:45:00 +01:00
Marc Michalsky
e83a898cb8 add error code for profile validation warning 2024-03-25 15:45:00 +01:00
Marc Michalsky
9baf2c0e2a override the $code property inherited from Exception in BaseException 2024-03-25 15:45:00 +01:00
Marc Michalsky
27675b7219 use new namespace style 2024-03-25 15:45:00 +01:00
Marc Michalsky
43be624bf6 create custom exceptions 2024-03-25 15:45:00 +01:00
Jens Schuppe
7a751e92bf phpcs: Conflicts with PHPStan type hints 2024-03-25 15:44:43 +01:00
Jens Schuppe
f42bc9b7ed PHP Code Sniffer fixes 2024-03-25 15:26:15 +01:00
Jens Schuppe
322c2d0dd3 Run Civix upgrade to Civix version 23.02.1 2024-03-25 15:01:36 +01:00
Jens Schuppe
69843bc981 PHP Code Beautifier fixes 2024-03-25 14:58:51 +01:00
Jens Schuppe
fad228315d Remove invalid @throws 2024-03-25 14:52:29 +01:00
Jens Schuppe
8cd928caa9 Add extension template with PHPStan, PHPUnit and phpcs 2024-03-25 14:51:57 +01:00
Jens Schuppe
b4c6581d4f Set version to 1.5-dev 2024-03-25 14:36:18 +01:00
Jens Schuppe
fb25af415c Back to 1.4-dev 2024-03-13 12:53:51 +01:00
Jens Schuppe
e7040c70d3 Version 1.4-beta1 2024-03-13 12:53:35 +01:00
Jens Schuppe
30425418e7 Merge branch 'permissions'
[#82] Define permissions with label and description
2024-03-13 12:47:13 +01:00
Jens Schuppe
75d9516da0 Define permissions with label and description
Fixes "User deprecated function: Permission 'access Twingle API' should be declared with 'label' and 'description' keys." deprecation warnings
2024-03-11 14:52:24 +01:00
peth-systopia
c00314c75d
Update README.md 2024-01-16 12:57:03 +01:00
Jens Schuppe
df608dc3d0 Merge remote-tracking branch 'MarcMichalsky/minor_changes'
[#77] Minor changes/Code cleanup
2023-10-16 14:22:52 +02:00
Jens Schuppe
c149275e15 Back to dev 2023-09-29 10:53:32 +02:00
Jens Schuppe
dc1118dac9 Version 1.4-alpha4 2023-09-29 10:53:17 +02:00
Jens Schuppe
8daddce005 Merge remote-tracking branch 'origin/issue/65'
[#65] Replace calls to deprecated method `CRM_Core_Error::debug_log_message()`
2023-09-29 10:52:09 +02:00
Jens Schuppe
9ccd86f03a Merge branch 'navigationMenu'
[#79] Add navigation menu items
2023-09-26 12:37:44 +02:00
Jens Schuppe
e39a91e477 Add navigation menu items 2023-09-26 12:35:38 +02:00
Marc Michalsky
89df7482a6
throw error if no default project is found 2023-09-06 16:45:13 +02:00
Marc Michalsky
b7b0e6d610
use custom css file instead of inline style 2023-08-29 17:02:44 +02:00
Marc Michalsky
ab5b0b3929
use correct array key 2023-08-29 16:39:28 +02:00
Marc Michalsky
fd99f3b24f
add default option
add a 'select profile' default option
2023-08-29 16:35:03 +02:00
Marc Michalsky
3241583542
use variable to avoid multiple method calls 2023-08-17 10:08:51 +02:00