Drupal 7 Patches
Erscheinungsbild
Calendar Module
Version: 7.x-3.5
Problem: Next month button skips a month
betroffene Datei: sites\all\modules\date\date_views\includes\date_views_plugin_pager.inc
(Date Module, Version 7.x-2.9)
Issue URL: https://www.drupal.org/node/2375235
Patch:
diff --git a/date_views/includes/date_views_plugin_pager.inc b/date_views/includes/date_views_plugin_pager.inc
index 5caca4e..1addd20 100644
--- a/date_views/includes/date_views_plugin_pager.inc
+++ b/date_views/includes/date_views_plugin_pager.inc
@@ -281,7 +281,7 @@ class date_views_plugin_pager extends views_plugin_pager {
else {
$this->view->date_info->prev_date = clone($argument->min_date);
date_modify($this->view->date_info->prev_date, '-1 ' . $argument->date_handler->granularity);
- $this->view->date_info->next_date = clone($argument->max_date);
+ $this->view->date_info->next_date = clone($argument->min_date);
date_modify($this->view->date_info->next_date, '+1 ' . $argument->date_handler->granularity);
}
// Write the date_info properties that depend on the current value.
Menu UX
Version: 7.x-1.0-beta3
Problem: Fehlermeldung: "Parameter 1 to menuux_node_update() expected to be a reference, value given dans module_invoke_all()"
betroffene Datei: sites\all\modules\date\menuux\menuux.module
Issue URL: https://www.drupal.org/node/1063804
Patch: https://www.drupal.org/files/issues/menuux_1063804_hook_signatures.patch
diff --git a/menuux.module b/menuux.module
index 7ca7172..49c5f91 100755
--- a/menuux.module
+++ b/menuux.module
@@ -61,7 +61,7 @@ function menuux_menu() {
/**
* Implementation of hook_nodeapi
*/
-function menuux_node_validate(&$node) {
+function menuux_node_validate($node) {
if (isset($node->fmenu)) {
module_load_include('inc', 'menuux', 'menuux.admin');
menuux_node_form_validate($node);
@@ -71,7 +71,7 @@ function menuux_node_validate(&$node) {
/**
* Implementation of hook_node_update
*/
-function menuux_node_update(&$node) {
+function menuux_node_update($node) {
if (isset($node->fmenu)) {
module_load_include('inc', 'menuux', 'menuux.admin');
menuux_node_form_submit($node);
@@ -81,7 +81,7 @@ function menuux_node_update(&$node) {
/**
* Implementation of hook_node_insert
*/
-function menuux_node_insert(&$node) {
+function menuux_node_insert($node) {
if (isset($node->fmenu)) {
module_load_include('inc', 'menuux', 'menuux.admin');
menuux_node_form_submit($node);
@@ -91,7 +91,7 @@ function menuux_node_insert(&$node) {
/**
* Implementation of hook_node_prepare
*/
-function menuux_node_prepare(&$node) {
+function menuux_node_prepare($node) {
if (isset($node->menu)) {
$node->fmenu = array();
if ($node->menu['mlid'] > 0) {
@@ -128,4 +128,4 @@ function menuux_access_menu($menu_name) {
module_load_include('inc', 'menuux', 'menuux.admin');
$availabe_menus = menuux_available_menus();
return isset($availabe_menus[$menu_name]);
-}
\ No newline at end of file
+}