Skip to content

Commit 44ec1f5

Browse files
author
MathiasGajhede
committed
Merge pull request #3 from syddjurs/hotfix-1.0.2
Hotfix 1.0.2
2 parents 9331282 + bfe0e27 commit 44ec1f5

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

os2web_adlib_api.module

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ function os2web_adlib_api_status() {
262262
);
263263
}
264264
}
265-
drupal_add_js(drupal_get_path('module', 'os2web_adlib_api') . '/os2web_adlib_api.js', 'file');
265+
drupal_add_js(drupal_get_path('module', 'os2web_adlib_api') . '/js/os2web_adlib_api.js', 'file');
266266
$html = '<h2>Connector information</h2>';
267267
$html .= theme('table', array('header' => $head, 'rows' => $rows));
268268
$head = array('Fid', 'Job-id', 'Status', 'action');
@@ -417,6 +417,11 @@ function os2web_adlib_api_convert_to_pdf($fid, $docref = NULL) {
417417
'did' => $docref,
418418
'jobtype' => 0,
419419
);
420+
db_delete('os2web_adlib_api_doc_files')
421+
->condition('fid', $fid)
422+
->condition('did', $docref)
423+
->condition('jobtype', 0)
424+
->execute();
420425
drupal_write_record('os2web_adlib_api_doc_files', $record);
421426
if (ADLIB_TEST_FID) {
422427
error_log(basename(__FILE__) . ':' . __LINE__ . " jm@bellcom.dk: File queued for processing.");
@@ -435,6 +440,11 @@ function os2web_adlib_api_convert_to_pdf($fid, $docref = NULL) {
435440
'did' => $docref,
436441
'job_id' => 'Complete',
437442
);
443+
db_delete('os2web_adlib_api_doc_files')
444+
->condition('fid', $fid)
445+
->condition('did', $docref)
446+
->condition('jobtype', 0)
447+
->execute();
438448
drupal_write_record('os2web_adlib_api_doc_files', $record);
439449
return FALSE;
440450
}

0 commit comments

Comments
 (0)