Skip to content

Commit

Permalink
Fixed problem with Drupal module that prevented the library being att…
Browse files Browse the repository at this point in the history
…ached to nodes.

Fixes issue 29.
  • Loading branch information
Mark Birbeck authored and Mark Birbeck committed Jan 17, 2010
1 parent 41f3b3e commit d79fca7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion drupal.ant.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
drupal.version.number = 1.0.2
drupal.version.number = 1.0.3
drupal.package.name = ${project.name}-drupal-${drupal.version.number}
drupal.dir = ${src.dir}/drupal
drupal.output.dir = ${build.dir}/output/${drupal.package.name}
6 changes: 3 additions & 3 deletions drupal/backplanejs.module
Original file line number Diff line number Diff line change
Expand Up @@ -877,14 +877,14 @@ function _backplanejs_delete_node_script_libs($node_id = 0, $vid = 0, $all_revis
function _backplanejs_insert_node_script_libs($node_id = 0, $vid = 0, $libs = array()) {
if ($node_id > 0) {
// Could this be done more efficiently as one SQL statement?
foreach ($libs as $id => $v) {
foreach ($libs as $id => $lvid) {
// Value of 0 is empty. No lib version selected
if ($v > 0) {
if ($lvid > 0) {
db_query(
"INSERT INTO {backplanejs_node_script_lib} (nid, vid, lib_ver_id) VALUES (%d, %d, %d)",
$node_id,
$vid,
$id
$lvid
);
}
}
Expand Down

0 comments on commit d79fca7

Please sign in to comment.