security update link,module_filters,search_api_solr,ubercart,views

This commit is contained in:
2019-04-24 16:39:12 +02:00
parent 0aea7a0db1
commit 514f3bd89e
497 changed files with 9038 additions and 3662 deletions

View File

@@ -2,7 +2,7 @@
/**
* @file
* Ubercart stock related tests
* Ubercart stock related tests.
*/
class UbercartStockTestCase extends UbercartTestHelper {
@@ -46,7 +46,7 @@ class UbercartStockTestCase extends UbercartTestHelper {
$stock = rand(1, 1000);
uc_stock_set($this->product->model, $stock);
$this->drupalGet('node/' . $this->product->nid . '/edit/stock');
$this->assertFieldByName('stock[0][stock]', (string)$stock, 'Set stock level found.');
$this->assertFieldByName('stock[0][stock]', (string) $stock, 'Set stock level found.');
}
public function testStockDecrement() {
@@ -92,4 +92,5 @@ class UbercartStockTestCase extends UbercartTestHelper {
$this->assertTrue(strpos($mail['body'], $this->product->model) !== FALSE, 'Mail body contains SKU.');
$this->assertTrue(strpos($mail['body'], 'has reached ' . $qty) !== FALSE, 'Mail body contains quantity.');
}
}

View File

@@ -80,7 +80,6 @@ function uc_stock_report() {
$query->condition('active', 1)
->condition('title', '', '<>');
if (arg(4) == 'threshold') {
$query->where('threshold >= stock');
}

View File

@@ -12,9 +12,8 @@ files[] = views/uc_stock_handler_filter_below_threshold.inc
configure = admin/store/settings/stock
; Information added by Drupal.org packaging script on 2016-07-16
version = "7.x-3.10"
; Information added by Drupal.org packaging script on 2019-03-06
version = "7.x-3.12"
core = "7.x"
project = "ubercart"
datestamp = "1468644909"
datestamp = "1551862392"

View File

@@ -9,11 +9,8 @@
* When that threshold is reached admins can be optionally notified about the
* current stock level. Store admins can view all stock levels in the reports
* section of Ubercart.
*
* Development sponsored by the Ubercart project. http://www.ubercart.org
*/
/**
* Implements hook_help().
*/
@@ -21,6 +18,7 @@ function uc_stock_help($path, $arg) {
switch ($path) {
case 'node/%/edit/stock':
return '<p>' . t('To keep track of stock for a particular product SKU, make sure it is marked as active and enter a stock value. When the stock level drops below the threshold value, you can be notified based on your stock settings.') . '</p>';
case 'admin/store/reports/stock':
case 'admin/store/reports/stock/threshold':
return '<p>' . t('This is the list of product SKUs that are currently active. Stock levels below their threshold have highlighted rows. Toggle the checkbox below to alter which stock levels are shown.') . '</p>';
@@ -92,7 +90,7 @@ function uc_stock_permission() {
return array(
'administer product stock' => array(
'title' => t('Administer product stock'),
)
),
);
}

View File

@@ -5,7 +5,6 @@
* Variable module hook implementations.
*/
/**
* Implements hook_variable_group_info().
*/

View File

@@ -17,4 +17,5 @@ class uc_stock_handler_filter_below_threshold extends views_handler_filter_boole
$this->ensure_my_table();
$this->query->add_where_expression($this->options['group'], "$this->table_alias.stock " . (empty($this->value) ? '>=' : '<') . " $this->table_alias.threshold");
}
}