Project

General

Profile

Revision 3700d603

ID3700d60368ddb0b49899cbfbdb59e6a7b5999306
Parent a26701d8
Child 73780c64

Added by Andreas Kohlbecker 2 months ago

fix #9763 adapting broken exist function to new data scheme

View differences:

modules/cdm_dataportal/ext_links/ext_links.admin.inc
140 140
    '#default_value' => $link_template->id,
141 141
    '#maxlength' => 255,
142 142
    '#machine_name' => array(
143
      'exists' => 'ext_link_exists',
143
      'exists' => 'ext_links_exists',
144 144
    ),
145 145
    '#disabled' => !empty($link_template->id),
146 146
  );
modules/cdm_dataportal/ext_links/ext_links.module
255 255
 * @see ext_links_load()
256 256
 */
257 257
function ext_links_exists($ext_link_name) {
258
  return (bool) db_query_range('SELECT 1 FROM {ext_links} WHERE name = :name', 0, 1, array(':name' => $ext_link_name))->fetchField();
258
  return (bool) db_query_range('SELECT 1 FROM {ext_links} WHERE id = :id', 0, 1, array(':id' => $ext_link_name))->fetchField();
259 259
}
260 260

  
261 261

  

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)