Changeset 3684871
- Timestamp:
- 09/07/2026 12:23:23 PM (7 weeks ago)
- Location:
- wbs-connect-for-dataverse/trunk
- Files:
-
- 3 edited
-
includes/collections.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
-
wbs-connect-for-dataverse.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wbs-connect-for-dataverse/trunk/includes/collections.php
r3684724 r3684871 192 192 'entity_set' => wbs_dataverse_connect_logical_name($config['entity_set'] ?? ''), 193 193 'name_column' => wbs_dataverse_connect_logical_name($config['name_column'] ?? ''), 194 'id_column' => wbs_dataverse_connect_logical_name($config['id_column'] ?? ''), 194 195 'slug_column' => wbs_dataverse_connect_logical_name($config['slug_column'] ?? ''), 195 196 'columns' => wbs_dataverse_connect_logical_list($config['columns'] ?? []), … … 219 220 } 220 221 221 /** Logical name of the collection's primary key column. */ 222 /** 223 * Logical name of the collection's primary key column: the configured 224 * id_column, else the table's PrimaryIdAttribute from metadata, else the 225 * <table>id convention. Activity tables (task, email, appointment) use 226 * activityid, which is why the convention alone is not enough. 227 */ 222 228 function wbs_dataverse_connect_id_column($config) { 223 return $config['table'] . 'id'; 229 if (!empty($config['id_column'])) { 230 return $config['id_column']; 231 } 232 static $memo = []; 233 $table = (string) $config['table']; 234 if (!array_key_exists($table, $memo)) { 235 $memo[$table] = ''; 236 if (function_exists('wbs_dataverse_connect_metadata_entity')) { 237 $entity = wbs_dataverse_connect_metadata_entity($table, ['type' => 'metadata', 'config' => $config]); 238 if (is_array($entity) && !empty($entity['primary_id'])) { 239 $memo[$table] = wbs_dataverse_connect_logical_name($entity['primary_id']); 240 } 241 } 242 } 243 return $memo[$table] !== '' ? $memo[$table] : $table . 'id'; 224 244 } 225 245 -
wbs-connect-for-dataverse/trunk/readme.txt
r3684724 r3684871 5 5 Tested up to: 7.1 6 6 Requires PHP: 8.0 7 Stable tag: 1.5. 07 Stable tag: 1.5.1 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 107 107 == Changelog == 108 108 109 = 1.5.1 = 110 * Primary key from metadata: collections over activity tables (task, email, appointment, phone call) and any other table whose key is not <table>id now work; an explicit id_column can also be set in code. Found while testing the Pro Business tier live. 111 109 112 = 1.5.0 = 110 113 * Search, filters and sort on collections: pick the columns on the Collections tab and visitors get a search box, filter dropdowns and sort choices that work without JavaScript. The [wbsdvc_collection] shortcode accepts per_page, search, filters and sort. -
wbs-connect-for-dataverse/trunk/wbs-connect-for-dataverse.php
r3684724 r3684871 4 4 * Plugin URI: https://woods.consulting/wbs-dataverse-connect-for-wordpress/ 5 5 * Description: Publish Microsoft Dataverse records as lists and detail views on your WordPress site, and write form submissions straight back into Dataverse tables. 6 * Version: 1.5. 06 * Version: 1.5.1 7 7 * Author: WOODS Business Solutions 8 8 * Author URI: https://woods.consulting … … 16 16 if (!defined('ABSPATH')) { exit; } 17 17 18 define('WBS_DATAVERSE_CONNECT_VERSION', '1.5. 0');18 define('WBS_DATAVERSE_CONNECT_VERSION', '1.5.1'); 19 19 define('WBS_DATAVERSE_CONNECT_PATH', plugin_dir_path(__FILE__)); 20 20 define('WBS_DATAVERSE_CONNECT_URL', plugin_dir_url(__FILE__));
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)